@a_team/prisma 2.1.5 → 2.1.7

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,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-47ce95c11de5b47b0b51cd44dd7b6757e4825965c104c37c0eedb6d9a6d48789",
2
+ "name": "prisma-client-5854e915362fb2f63b6ce600af75cb75f9ea1bae742096abaf3b57e515cba721",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -297,8 +297,8 @@ model Mission {
297
297
  mainManagerUserId String?
298
298
  managers MissionsManager[]
299
299
  migrations String[]
300
- missionSpecId String @unique @db.ObjectId
301
- missionSpec MissionSpec @relation(fields: [missionSpecId], references: [id])
300
+ missionSpecId String? @unique @db.ObjectId
301
+ missionSpec MissionSpec? @relation(fields: [missionSpecId], references: [id])
302
302
  owner String? @db.ObjectId
303
303
  ownerModel User? @relation("ownerModel", fields: [owner], references: [id])
304
304
  promotedTags String[]
@@ -309,7 +309,7 @@ model Mission {
309
309
  setAsScheduledToEndAt DateTime? @db.Date
310
310
  shortCompanyDescription String?
311
311
  skipContracts Boolean?
312
- status String
312
+ status MissionStatus
313
313
  talentIndustries String[]
314
314
  testing MissionsTesting?
315
315
  title String
@@ -325,6 +325,18 @@ model Mission {
325
325
  @@map("missions")
326
326
  }
327
327
 
328
+ enum MissionStatus {
329
+ Spec
330
+ Formation
331
+ Created
332
+ Published
333
+ Pending
334
+ Running
335
+ ScheduledToEnd
336
+ Ended
337
+ Archived
338
+ }
339
+
328
340
  model MissionSpec {
329
341
  id String @id @default(auto()) @map("_id") @db.ObjectId
330
342
  account Account? @relation(fields: [accountId], references: [id])
@@ -433,6 +445,24 @@ type ClientRoleQuestion {
433
445
  updatedAt DateTime? @db.Date
434
446
  }
435
447
 
448
+ model MissionSpecPreFill {
449
+ id String @id @default(auto()) @map("_id") @db.ObjectId
450
+ userId String @db.ObjectId
451
+ missionName String?
452
+ plannedStart String?
453
+ companyDescription String?
454
+ missionDescription String?
455
+ timezone String?
456
+ openRoles Json?
457
+ status String @default("pending") // "pending", "completed", or "failed"
458
+ createdAt DateTime @default(now())
459
+ updatedAt DateTime @updatedAt
460
+
461
+ user User @relation(fields: [userId], references: [id], name: "user")
462
+
463
+ @@map("missionSpecPreFills")
464
+ }
465
+
436
466
  model RoleCategory {
437
467
  id String @id @default(auto()) @map("_id") @db.ObjectId
438
468
  anchors String[]
@@ -480,22 +510,23 @@ model TalentIndustry {
480
510
  }
481
511
 
482
512
  model User {
483
- id String @id @default(auto()) @map("_id") @db.ObjectId
513
+ id String @id @default(auto()) @map("_id") @db.ObjectId
484
514
  firstName String?
485
515
  lastName String?
486
- username String? @unique(map: "username_1")
487
- email String? @unique(map: "email_1")
488
- isAdmin Boolean @default(false)
489
- createdMissionsModels Mission[] @relation("creator")
490
- ownedMissionsModels Mission[] @relation("ownerModel")
516
+ username String? @unique(map: "username_1")
517
+ email String? @unique(map: "email_1")
518
+ isAdmin Boolean @default(false)
519
+ createdMissionsModels Mission[] @relation("creator")
520
+ ownedMissionsModels Mission[] @relation("ownerModel")
491
521
  type String
492
522
  pictureURL String?
493
523
  status String
494
- createdAt DateTime @db.Date
524
+ createdAt DateTime @db.Date
495
525
  titles String[]
496
526
  scrubbed String?
497
- authoredMissionSpecs MissionSpec[] @relation("author")
498
- modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
527
+ authoredMissionSpecs MissionSpec[] @relation("author")
528
+ modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
529
+ missionSpecPreFills MissionSpecPreFill[] @relation("user")
499
530
 
500
531
  @@map("users")
501
532
  }
@@ -227,6 +227,20 @@ exports.Prisma.MissionSpecScalarFieldEnum = {
227
227
  workingHoursNumberOfMinutesOverlap: 'workingHoursNumberOfMinutesOverlap'
228
228
  };
229
229
 
230
+ exports.Prisma.MissionSpecPreFillScalarFieldEnum = {
231
+ id: 'id',
232
+ userId: 'userId',
233
+ missionName: 'missionName',
234
+ plannedStart: 'plannedStart',
235
+ companyDescription: 'companyDescription',
236
+ missionDescription: 'missionDescription',
237
+ timezone: 'timezone',
238
+ openRoles: 'openRoles',
239
+ status: 'status',
240
+ createdAt: 'createdAt',
241
+ updatedAt: 'updatedAt'
242
+ };
243
+
230
244
  exports.Prisma.RoleCategoryScalarFieldEnum = {
231
245
  id: 'id',
232
246
  anchors: 'anchors',
@@ -296,6 +310,18 @@ exports.ContractSource = exports.$Enums.ContractSource = {
296
310
  ATeamGenerated: 'ATeamGenerated'
297
311
  };
298
312
 
313
+ exports.MissionStatus = exports.$Enums.MissionStatus = {
314
+ Spec: 'Spec',
315
+ Formation: 'Formation',
316
+ Created: 'Created',
317
+ Published: 'Published',
318
+ Pending: 'Pending',
319
+ Running: 'Running',
320
+ ScheduledToEnd: 'ScheduledToEnd',
321
+ Ended: 'Ended',
322
+ Archived: 'Archived'
323
+ };
324
+
299
325
  exports.MissionSpecStatus = exports.$Enums.MissionSpecStatus = {
300
326
  spec: 'spec',
301
327
  formation: 'formation',
@@ -317,6 +343,7 @@ exports.Prisma.ModelName = {
317
343
  Contract: 'Contract',
318
344
  Mission: 'Mission',
319
345
  MissionSpec: 'MissionSpec',
346
+ MissionSpecPreFill: 'MissionSpecPreFill',
320
347
  RoleCategory: 'RoleCategory',
321
348
  TalentCategory: 'TalentCategory',
322
349
  TalentIndustry: 'TalentIndustry',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "keywords": [],
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist & npm run generate & tsc",