@a_team/prisma 2.1.21-win → 3.0.20-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,540 +0,0 @@
1
- type AccountsMember {
2
- user String @db.ObjectId
3
- accessLevel String?
4
- invitedAt DateTime? @db.Date
5
- }
6
-
7
- type AccountsWorkspace {
8
- name String
9
- description String?
10
- logo String?
11
- website String?
12
- }
13
-
14
- model Account {
15
- id String @id @default(auto()) @map("_id") @db.ObjectId
16
- clientCompany String? @db.ObjectId
17
- clientCompanyModel ClientCompany? @relation(fields: [clientCompany], references: [id])
18
- companyId String @map("company") @db.ObjectId
19
- company Company @relation(fields: [companyId], references: [id])
20
- members AccountsMember[]
21
- workspace AccountsWorkspace?
22
- billingAccount String? @db.ObjectId
23
- createdAt DateTime? @db.Date
24
- updatedAt DateTime? @db.Date
25
- deletedAt DateTime? @db.Date
26
- migrations String[]
27
- missions Mission[]
28
- missionSpecs MissionSpec[]
29
-
30
- @@map("accounts")
31
- }
32
-
33
- model ClientCompany {
34
- id String @id @default(auto()) @map("_id") @db.ObjectId
35
- createdAt DateTime? @db.Date
36
- author String? @db.ObjectId
37
- name String
38
- slug String?
39
- product String?
40
- website String?
41
- size String?
42
- description String?
43
- logo String?
44
- accounts Account[]
45
- missionSpecs MissionSpec[]
46
-
47
- @@map("clientCompanies")
48
- }
49
-
50
- type LocalHourRange {
51
- endTime Int?
52
- startTime Int?
53
- }
54
-
55
- type TimezoneObject {
56
- name String
57
- utcOffset Int
58
- }
59
-
60
- type StructuredEnrichment {
61
- name String?
62
- countryCode String?
63
- city String?
64
- timezone String?
65
- industries String[] @db.ObjectId
66
- companyStage String?
67
- logoUrl String?
68
- employeeRange String?
69
- fundingRange String?
70
- revenueRange String?
71
- }
72
-
73
- type CompanyEnrichment {
74
- structured StructuredEnrichment?
75
- }
76
-
77
- model Company {
78
- id String @id @default(auto()) @map("_id") @db.ObjectId
79
- accounts Account[]
80
- name String
81
- url String
82
- enrichment CompanyEnrichment
83
- createdBy String? @db.ObjectId
84
- createdAt DateTime? @db.Date
85
- updatedAt DateTime? @db.Date
86
- requiresDeepEnrichment Boolean?
87
-
88
- @@index([name, createdAt], map: "name_1_createdAt_-1")
89
- @@index([url], map: "url_1")
90
- @@map("companiesV2")
91
- }
92
-
93
- model Contract {
94
- sid String @id @default(auto()) @map("_id") @db.ObjectId
95
- status ContractStatus
96
- type ContractType
97
- downloadURL String
98
- createdAt DateTime @db.Date
99
- updatedAt DateTime @updatedAt @db.Date
100
- parties ContractParty[]
101
- missionId String? @map("mission") @db.ObjectId
102
- mission Mission? @relation(fields: [missionId], references: [mid])
103
- role String? @db.ObjectId
104
- custom Boolean?
105
- pandadocMetadata PandadocMetadata?
106
- source ContractSource?
107
- documentTitle String?
108
-
109
- @@index([type, missionId, role, createdAt], map: "type_1_mission_1_role_1_createdAt_-1")
110
- @@index([parties.user, status, createdAt], map: "parties.user_1_status_1_createdAt_1")
111
- @@map("contracts")
112
- }
113
-
114
- enum ContractStatus {
115
- Created
116
- Completed
117
- }
118
-
119
- enum ContractType {
120
- TermsOfService
121
- MissionAgreement
122
- ClientContract
123
- }
124
-
125
- type ContractParty {
126
- type ContractPartyType
127
- user String? @db.ObjectId
128
- ip String?
129
- signedAt DateTime? @db.Date
130
- accountId String? @db.ObjectId
131
- stripeClient String?
132
- }
133
-
134
- enum ContractPartyType {
135
- BillingCustomer
136
- MissionRole
137
- }
138
-
139
- type PandadocMetadata {
140
- id String
141
- hubspotDealId String?
142
- hubspotCompanyId String?
143
- }
144
-
145
- enum ContractSource {
146
- PandaDoc
147
- Custom
148
- ATeamGenerated
149
- }
150
-
151
- type MissionRoleAvailability {
152
- date DateTime? @db.Date
153
- scheduledEndDate DateTime? @db.Date
154
- weeklyHoursAvailable Float
155
- }
156
-
157
- type MissionRoleCustomQuestion {
158
- id String? @map("_id") @db.ObjectId
159
- createdAt DateTime? @db.Date
160
- isRequired Boolean?
161
- isVisible Boolean
162
- text String
163
- updatedAt DateTime? @db.Date
164
- }
165
-
166
- type MissionRolePreferredSkill {
167
- rating Int?
168
- talentSkillId String @db.ObjectId
169
- }
170
-
171
- type MissionRoleRequiredSkill {
172
- rating Int?
173
- talentSkillId String @db.ObjectId
174
- }
175
-
176
- type MissionRoleUtcOffsetRange {
177
- from TimezoneObject?
178
- to TimezoneObject?
179
- }
180
-
181
- type MissionRoleVisibility {
182
- visibilityStatus String
183
- }
184
-
185
- type MissionRoleWorkingHours {
186
- id String? @map("_id") @db.ObjectId
187
- daily LocalHourRange[]
188
- name String?
189
- numberOfMinutesOverlap Int?
190
- utcDaylightHours LocalHourRange[]
191
- utcOffset Int?
192
- utcStandardHours LocalHourRange[]
193
- }
194
-
195
- type MissionRole {
196
- id String @map("_id") @db.ObjectId
197
- availability MissionRoleAvailability?
198
- builderRateMax Float?
199
- builderRateMin Float?
200
- category String @db.ObjectId
201
- createdAt DateTime? @db.Date
202
- customQuestions MissionRoleCustomQuestion[]
203
- description String?
204
- fullName String?
205
- hasPerformanceIssue Boolean?
206
- headline String?
207
- hourlyRate Float?
208
- monthlyRate Float?
209
- isBadPerformance Boolean?
210
- isLead Boolean?
211
- locations String[]
212
- lookingForApplications Boolean?
213
- margin Float?
214
- preferredSkills MissionRolePreferredSkill[]
215
- requiredSkills MissionRoleRequiredSkill[]
216
- setAsScheduledToEndAt DateTime? @db.Date
217
- showRateRangeToBuilders Boolean?
218
- status MissionRoleStatus
219
- updatedAt DateTime? @db.Date
220
- user String? @db.ObjectId
221
- userAssignedAt DateTime? @db.Date
222
- utcOffsetRange MissionRoleUtcOffsetRange?
223
- visibility MissionRoleVisibility?
224
- workingHours MissionRoleWorkingHours?
225
- builderMonthlyRateMin Float?
226
- builderMonthlyRateMax Float?
227
- collectMonthlyRate Boolean?
228
- isFullTimeRetainer Boolean?
229
- }
230
-
231
- type MissionsManager {
232
- id String @map("_id") @db.ObjectId
233
- accessMode String
234
- excludeFromInvoiceEmails Boolean?
235
- excludeFromTeamPulseEmails Boolean?
236
- }
237
-
238
- type MissionsAttachedLink {
239
- URL String
240
- title String
241
- }
242
-
243
- type MissionsCompanyRequest {
244
- companyName String
245
- description String
246
- email String
247
- fullName String
248
- notes String?
249
- phoneNumber String
250
- role String
251
- websiteURL String
252
- }
253
-
254
- type MissionsInvoicing {
255
- purchaseOrderNumber String?
256
- }
257
-
258
- type MissionsTesting {
259
- expiresAt DateTime @db.Date
260
- type String
261
- }
262
-
263
- type WorkingHoursSchema {
264
- name String
265
- utcOffset Int
266
- daily LocalHourRange[]
267
- utcStandardHours LocalHourRange[]
268
- utcDaylightHours LocalHourRange[]
269
- }
270
-
271
- model Mission {
272
- mid String @id @default(auto()) @map("_id") @db.ObjectId
273
- accountId String? @db.ObjectId
274
- accountModel Account? @relation(fields: [accountId], references: [id])
275
- applyStatus String?
276
- attachedLinks MissionsAttachedLink[]
277
- automatedStatusesDisabled Boolean?
278
- automaticInvoicingPeriod String?
279
- bdOwners String[]
280
- billingPeriod String?
281
- clientMargin Float?
282
- companyRequest MissionsCompanyRequest?
283
- companyStory String?
284
- createdAt DateTime? @db.Date
285
- creatorUser String? @db.ObjectId
286
- creatorModel User? @relation("creator", fields: [creatorUser], references: [id])
287
- description String?
288
- expectedDurationMonths Int?
289
- hidden Boolean?
290
- hubspotDealId String?
291
- internalDescription String?
292
- internalMission Boolean?
293
- invoiceEmailGreeting String?
294
- invoicing MissionsInvoicing?
295
- lastDeployedAt DateTime? @db.Date
296
- logoURL String?
297
- mainManagerUserId String?
298
- managers MissionsManager[]
299
- migrations String[]
300
- missionSpecId String? @unique @db.ObjectId
301
- missionSpec MissionSpec? @relation(fields: [missionSpecId], references: [id])
302
- owner String? @db.ObjectId
303
- ownerModel User? @relation("ownerModel", fields: [owner], references: [id])
304
- promotedTags String[]
305
- publishedAt DateTime? @db.Date
306
- publisherUser String? @db.ObjectId
307
- roles MissionRole[]
308
- rolesMargin Float?
309
- setAsScheduledToEndAt DateTime? @db.Date
310
- shortCompanyDescription String?
311
- skipContracts Boolean?
312
- status MissionStatus
313
- talentIndustries String[]
314
- testing MissionsTesting?
315
- title String
316
- updatedAt DateTime? @db.Date
317
- videoURL String?
318
- website String?
319
- plannedStart String?
320
- overlapMinutes Int?
321
- timezone String?
322
- contracts Contract[]
323
-
324
- @@unique([roles.id], map: "roles._id_1")
325
- @@map("missions")
326
- }
327
-
328
- enum MissionStatus {
329
- Spec
330
- Formation
331
- Created
332
- Published
333
- Pending
334
- Running
335
- ScheduledToEnd
336
- Ended
337
- Archived
338
- }
339
-
340
- enum MissionRoleStatus {
341
- Open
342
- Active
343
- Canceled
344
- ScheduledToEnd
345
- Ended
346
- }
347
-
348
- model MissionPrefill {
349
- id String @id @default(auto()) @map("_id") @db.ObjectId
350
- userId String @db.ObjectId
351
- missionName String?
352
- plannedStart String?
353
- companyDescription String?
354
- missionDescription String?
355
- timezone String?
356
- openRoles Json?
357
- status String @default("pending") // "pending", "completed", or "failed"
358
- createdAt DateTime @default(now())
359
- updatedAt DateTime @updatedAt
360
-
361
- user User @relation(fields: [userId], references: [id], name: "user")
362
-
363
- @@map("missionPrefills")
364
- }
365
-
366
- model MissionSpec {
367
- id String @id @default(auto()) @map("_id") @db.ObjectId
368
- account Account? @relation(fields: [accountId], references: [id])
369
- accountId String? @db.ObjectId
370
- attachedLinks AttachedLink[]
371
- author User? @relation(fields: [authorId], references: [id], name: "author")
372
- authorId String? @map("author") @db.ObjectId
373
- clientCompany ClientCompany? @relation(fields: [clientCompanyId], references: [id])
374
- clientCompanyId String? @map("clientCompany") @db.ObjectId
375
- clientConfirmed Boolean?
376
- collaborators String[] @db.ObjectId
377
- companyDescription String?
378
- createdAt DateTime? @db.Date
379
- deletedAt DateTime? @db.Date
380
- description String?
381
- icon String?
382
- lastModifier User? @relation(fields: [lastModifierId], references: [id], name: "lastModifier")
383
- lastModifierId String? @map("lastModifier") @db.ObjectId
384
- logo String?
385
- metadata Metadata?
386
- mission Mission?
387
- platformId String? @db.ObjectId
388
- roles MissionSpecRole[]
389
- startDate DateTime? @db.Date
390
- status MissionSpecStatus
391
- statusChangedAt StatusTime?
392
- title String
393
- updatedAt DateTime? @db.Date
394
- v Int @map("__v")
395
- videoURL String?
396
- workingHours WorkingHours?
397
- workingHoursNumberOfMinutesOverlap Int?
398
-
399
- @@index([accountId], map: "accountId_1")
400
- @@index([authorId, deletedAt, platformId, createdAt], map: "author_1_deletedAt_1_platformId_1_createdAt_1")
401
- @@index([accountId, deletedAt, platformId, createdAt], map: "accountId_1_deletedAt_1_platformId_1_createdAt_1")
402
- @@map("missionSpecs")
403
- }
404
-
405
- type MissionSpecRole {
406
- id String @map("_id") @db.ObjectId
407
- builderRateMax Float? @db.Double
408
- builderRateMin Float? @db.Double
409
- margin Float? @db.Double
410
- category String? @db.ObjectId
411
- createdAt DateTime? @default(now()) @db.Date
412
- createdBy String? @db.ObjectId
413
- customQuestions ClientRoleQuestion[]
414
- description String?
415
- isLead Boolean @default(false)
416
- tags String[]
417
- locations String[]
418
- minimumCommitment Int?
419
- preferredSkills String[] @db.ObjectId
420
- requiredSkills String[] @db.ObjectId
421
- typicalHourlyRate Int?
422
- user String? @db.ObjectId
423
- }
424
-
425
- type AttachedLink {
426
- URL String
427
- title String
428
- }
429
-
430
- type Metadata {
431
- lastGeneratedAiDescriptionAt DateTime? @db.Date
432
- lastGeneratedAiDescription String?
433
- generatedFromGongCallAt DateTime? @db.Date
434
- landbotCustomerId String?
435
- bridgeType String?
436
- }
437
-
438
- enum MissionSpecStatus {
439
- spec
440
- formation
441
- proposal
442
- confirmed
443
- declined
444
- published
445
- }
446
-
447
- type StatusTime {
448
- spec DateTime? @db.Date
449
- formation DateTime? @db.Date
450
- proposal DateTime? @db.Date
451
- confirmed DateTime? @db.Date
452
- declined DateTime? @db.Date
453
- published DateTime? @db.Date
454
- }
455
-
456
- type WorkingHours {
457
- name String
458
- utcOffset Int
459
- daily LocalHourRange[]
460
- utcStandardHours LocalHourRange[]
461
- utcDaylightHours LocalHourRange[]
462
- numberOfMinutesOverlap Int?
463
- }
464
-
465
- type ClientRoleQuestion {
466
- id String? @map("_id") @db.ObjectId
467
- text String
468
- isRequired Boolean?
469
- isVisible Boolean?
470
- createdAt DateTime @db.Date
471
- updatedAt DateTime? @db.Date
472
- }
473
-
474
- model RoleCategory {
475
- id String @id @default(auto()) @map("_id") @db.ObjectId
476
- anchors String[]
477
- title String @unique(map: "title_1")
478
- deletedAt DateTime? @db.Date
479
- group String?
480
- talentCategoryIds String[]
481
-
482
- @@map("roleCategories")
483
- }
484
-
485
- datasource db {
486
- provider = "mongodb"
487
- url = env("MONGODB_URL")
488
- }
489
-
490
- generator client {
491
- provider = "prisma-client-js"
492
- binaryTargets = ["native", "darwin", "darwin-arm64", "windows", "linux-musl-openssl-3.0.x"]
493
- previewFeatures = ["prismaSchemaFolder"]
494
- output = "../../src/client"
495
- }
496
-
497
- model TalentCategory {
498
- id String @id @default(auto()) @map("_id") @db.ObjectId
499
- textId String
500
- name String
501
- nodeType String
502
- parentTalentCategoryIds String[]
503
- aliases String[]
504
- isProgrammingLanguage Boolean?
505
- isVettingEligible Boolean?
506
- deletedAt DateTime? @db.Date
507
-
508
- @@map("talentCategories")
509
- }
510
-
511
- model TalentIndustry {
512
- id String @id @default(auto()) @map("_id") @db.ObjectId
513
- description String
514
- name String
515
- textId String @unique(map: "textId_1")
516
-
517
- @@map("talentIndustries")
518
- }
519
-
520
- model User {
521
- id String @id @default(auto()) @map("_id") @db.ObjectId
522
- firstName String?
523
- lastName String?
524
- username String? @unique(map: "username_1")
525
- email String? @unique(map: "email_1")
526
- isAdmin Boolean @default(false)
527
- createdMissionsModels Mission[] @relation("creator")
528
- ownedMissionsModels Mission[] @relation("ownerModel")
529
- type String
530
- pictureURL String?
531
- status String
532
- createdAt DateTime @db.Date
533
- titles String[]
534
- scrubbed String?
535
- authoredMissionSpecs MissionSpec[] @relation("author")
536
- modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
537
- missionPrefills MissionPrefill[] @relation("user")
538
-
539
- @@map("users")
540
- }
@@ -1 +0,0 @@
1
- export * from "./index"