@a_team/prisma 2.1.1 → 2.1.3

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,498 +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
- marginVAT Float?
214
- preferredSkills MissionRolePreferredSkill[]
215
- requiredSkills MissionRoleRequiredSkill[]
216
- setAsScheduledToEndAt DateTime? @db.Date
217
- showRateRangeToBuilders Boolean?
218
- status String?
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 String
313
- talentIndustries String[]
314
- testing MissionsTesting?
315
- title String
316
- updatedAt DateTime? @db.Date
317
- videoURL String?
318
- website String?
319
- contracts Contract[]
320
-
321
- @@unique([roles.id], map: "roles._id_1")
322
- @@map("missions")
323
- }
324
-
325
- model MissionSpec {
326
- id String @id @default(auto()) @map("_id") @db.ObjectId
327
- account Account? @relation(fields: [accountId], references: [id])
328
- accountId String? @db.ObjectId
329
- attachedLinks AttachedLink[]
330
- author User? @relation(fields: [authorId], references: [id], name: "author")
331
- authorId String? @map("author") @db.ObjectId
332
- clientCompany ClientCompany? @relation(fields: [clientCompanyId], references: [id])
333
- clientCompanyId String? @map("clientCompany") @db.ObjectId
334
- clientConfirmed Boolean?
335
- collaborators String[] @db.ObjectId
336
- companyDescription String?
337
- createdAt DateTime? @db.Date
338
- deletedAt DateTime? @db.Date
339
- description String?
340
- icon String?
341
- lastModifier User? @relation(fields: [lastModifierId], references: [id], name: "lastModifier")
342
- lastModifierId String? @map("lastModifier") @db.ObjectId
343
- logo String?
344
- metadata Metadata?
345
- mission Mission?
346
- platformId String? @db.ObjectId
347
- roles MissionSpecRole[]
348
- startDate DateTime? @db.Date
349
- status MissionSpecStatus
350
- statusChangedAt StatusTime?
351
- title String
352
- updatedAt DateTime? @db.Date
353
- v Int @map("__v")
354
- videoURL String?
355
- workingHours WorkingHours?
356
- workingHoursNumberOfMinutesOverlap Int?
357
-
358
- @@index([accountId], map: "accountId_1")
359
- @@index([authorId, deletedAt, platformId, createdAt], map: "author_1_deletedAt_1_platformId_1_createdAt_1")
360
- @@index([accountId, deletedAt, platformId, createdAt], map: "accountId_1_deletedAt_1_platformId_1_createdAt_1")
361
- @@map("missionSpecs")
362
- }
363
-
364
- type MissionSpecRole {
365
- id String @map("_id") @db.ObjectId
366
- builderRateMax Float? @db.Double
367
- builderRateMin Float? @db.Double
368
- margin Float? @db.Double
369
- category String? @db.ObjectId
370
- createdAt DateTime? @default(now()) @db.Date
371
- createdBy String? @db.ObjectId
372
- customQuestions ClientRoleQuestion[]
373
- description String?
374
- isLead Boolean @default(false)
375
- tags String[]
376
- locations String[]
377
- minimumCommitment Int?
378
- preferredSkills String[] @db.ObjectId
379
- requiredSkills String[] @db.ObjectId
380
- typicalHourlyRate Int?
381
- user String? @db.ObjectId
382
- }
383
-
384
- type AttachedLink {
385
- URL String
386
- title String
387
- }
388
-
389
- type Metadata {
390
- lastGeneratedAiDescriptionAt DateTime? @db.Date
391
- lastGeneratedAiDescription String?
392
- generatedFromGongCallAt DateTime? @db.Date
393
- landbotCustomerId String?
394
- bridgeType String?
395
- }
396
-
397
- enum MissionSpecStatus {
398
- spec
399
- formation
400
- proposal
401
- confirmed
402
- declined
403
- published
404
- }
405
-
406
- type StatusTime {
407
- spec DateTime? @db.Date
408
- formation DateTime? @db.Date
409
- proposal DateTime? @db.Date
410
- confirmed DateTime? @db.Date
411
- declined DateTime? @db.Date
412
- published DateTime? @db.Date
413
- }
414
-
415
- type WorkingHours {
416
- name String
417
- utcOffset Int
418
- daily LocalHourRange[]
419
- utcStandardHours LocalHourRange[]
420
- utcDaylightHours LocalHourRange[]
421
- numberOfMinutesOverlap Int?
422
- }
423
-
424
- type ClientRoleQuestion {
425
- id String? @map("_id") @db.ObjectId
426
- text String
427
- isRequired Boolean?
428
- isVisible Boolean?
429
- createdAt DateTime @db.Date
430
- updatedAt DateTime? @db.Date
431
- }
432
-
433
- model RoleCategory {
434
- id String @id @default(auto()) @map("_id") @db.ObjectId
435
- anchors String[]
436
- title String @unique(map: "title_1")
437
- deletedAt DateTime? @db.Date
438
- group String?
439
- talentCategoryIds String[]
440
-
441
- @@map("roleCategories")
442
- }
443
-
444
- datasource db {
445
- provider = "mongodb"
446
- url = env("MONGODB_URL")
447
- }
448
-
449
- generator client {
450
- provider = "prisma-client-js"
451
- binaryTargets = ["native", "darwin", "darwin-arm64", "windows"]
452
- previewFeatures = ["prismaSchemaFolder"]
453
- output = "../../src/client"
454
- }
455
-
456
- model TalentCategory {
457
- id String @id @default(auto()) @map("_id") @db.ObjectId
458
- textId String
459
- name String
460
- nodeType String
461
- parentTalentCategoryIds String[]
462
- aliases String[]
463
- isProgrammingLanguage Boolean?
464
- isVettingEligible Boolean?
465
- deletedAt DateTime? @db.Date
466
-
467
- @@map("talentCategories")
468
- }
469
-
470
- model TalentIndustry {
471
- id String @id @default(auto()) @map("_id") @db.ObjectId
472
- description String
473
- name String
474
- textId String @unique(map: "textId_1")
475
-
476
- @@map("talentIndustries")
477
- }
478
-
479
- model User {
480
- id String @id @default(auto()) @map("_id") @db.ObjectId
481
- firstName String?
482
- lastName String?
483
- username String? @unique(map: "username_1")
484
- email String? @unique(map: "email_1")
485
- isAdmin Boolean @default(false)
486
- createdMissionsModels Mission[] @relation("creator")
487
- ownedMissionsModels Mission[] @relation("ownerModel")
488
- type String
489
- pictureURL String?
490
- status String
491
- createdAt DateTime @db.Date
492
- titles String[]
493
- scrubbed String?
494
- authoredMissionSpecs MissionSpec[] @relation("author")
495
- modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
496
-
497
- @@map("users")
498
- }
@@ -1 +0,0 @@
1
- export * from './index'