@a_team/prisma 2.1.5 → 2.1.6

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-9aa649dc2e4fab510f14f236112ac4510a9e7fb17cd902521737838889dac6f4",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -433,6 +433,22 @@ type ClientRoleQuestion {
433
433
  updatedAt DateTime? @db.Date
434
434
  }
435
435
 
436
+ model MissionSpecPreFill {
437
+ id String @id @default(auto()) @map("_id") @db.ObjectId
438
+ userId String @db.ObjectId
439
+ missionName String?
440
+ plannedStart String?
441
+ companyDescription String?
442
+ missionDescription String?
443
+ timezone String?
444
+ openRoles Json?
445
+ status String @default("pending") // "pending", "completed", or "failed"
446
+ createdAt DateTime @default(now())
447
+ updatedAt DateTime @updatedAt
448
+
449
+ user User @relation(fields: [userId], references: [id], name: "user")
450
+ }
451
+
436
452
  model RoleCategory {
437
453
  id String @id @default(auto()) @map("_id") @db.ObjectId
438
454
  anchors String[]
@@ -480,22 +496,23 @@ model TalentIndustry {
480
496
  }
481
497
 
482
498
  model User {
483
- id String @id @default(auto()) @map("_id") @db.ObjectId
499
+ id String @id @default(auto()) @map("_id") @db.ObjectId
484
500
  firstName String?
485
501
  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")
502
+ username String? @unique(map: "username_1")
503
+ email String? @unique(map: "email_1")
504
+ isAdmin Boolean @default(false)
505
+ createdMissionsModels Mission[] @relation("creator")
506
+ ownedMissionsModels Mission[] @relation("ownerModel")
491
507
  type String
492
508
  pictureURL String?
493
509
  status String
494
- createdAt DateTime @db.Date
510
+ createdAt DateTime @db.Date
495
511
  titles String[]
496
512
  scrubbed String?
497
- authoredMissionSpecs MissionSpec[] @relation("author")
498
- modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
513
+ authoredMissionSpecs MissionSpec[] @relation("author")
514
+ modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
515
+ missionSpecPreFills MissionSpecPreFill[] @relation("user")
499
516
 
500
517
  @@map("users")
501
518
  }
@@ -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',
@@ -317,6 +331,7 @@ exports.Prisma.ModelName = {
317
331
  Contract: 'Contract',
318
332
  Mission: 'Mission',
319
333
  MissionSpec: 'MissionSpec',
334
+ MissionSpecPreFill: 'MissionSpecPreFill',
320
335
  RoleCategory: 'RoleCategory',
321
336
  TalentCategory: 'TalentCategory',
322
337
  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.6",
4
4
  "keywords": [],
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist & npm run generate & tsc",