@a_team/prisma 2.1.4 → 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-201301e3ab4bef17bb2c44906dbb421ddd1eeb6f7e01e5062ac0932c2a7abe61",
2
+ "name": "prisma-client-9aa649dc2e4fab510f14f236112ac4510a9e7fb17cd902521737838889dac6f4",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -316,6 +316,9 @@ model Mission {
316
316
  updatedAt DateTime? @db.Date
317
317
  videoURL String?
318
318
  website String?
319
+ startDate DateTime? @db.Date
320
+ overlapMinutes Int?
321
+ timezone String?
319
322
  contracts Contract[]
320
323
 
321
324
  @@unique([roles.id], map: "roles._id_1")
@@ -430,6 +433,22 @@ type ClientRoleQuestion {
430
433
  updatedAt DateTime? @db.Date
431
434
  }
432
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
+
433
452
  model RoleCategory {
434
453
  id String @id @default(auto()) @map("_id") @db.ObjectId
435
454
  anchors String[]
@@ -477,22 +496,23 @@ model TalentIndustry {
477
496
  }
478
497
 
479
498
  model User {
480
- id String @id @default(auto()) @map("_id") @db.ObjectId
499
+ id String @id @default(auto()) @map("_id") @db.ObjectId
481
500
  firstName String?
482
501
  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")
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")
488
507
  type String
489
508
  pictureURL String?
490
509
  status String
491
- createdAt DateTime @db.Date
510
+ createdAt DateTime @db.Date
492
511
  titles String[]
493
512
  scrubbed String?
494
- authoredMissionSpecs MissionSpec[] @relation("author")
495
- modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
513
+ authoredMissionSpecs MissionSpec[] @relation("author")
514
+ modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
515
+ missionSpecPreFills MissionSpecPreFill[] @relation("user")
496
516
 
497
517
  @@map("users")
498
518
  }
@@ -197,7 +197,10 @@ exports.Prisma.MissionScalarFieldEnum = {
197
197
  title: 'title',
198
198
  updatedAt: 'updatedAt',
199
199
  videoURL: 'videoURL',
200
- website: 'website'
200
+ website: 'website',
201
+ startDate: 'startDate',
202
+ overlapMinutes: 'overlapMinutes',
203
+ timezone: 'timezone'
201
204
  };
202
205
 
203
206
  exports.Prisma.MissionSpecScalarFieldEnum = {
@@ -224,6 +227,20 @@ exports.Prisma.MissionSpecScalarFieldEnum = {
224
227
  workingHoursNumberOfMinutesOverlap: 'workingHoursNumberOfMinutesOverlap'
225
228
  };
226
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
+
227
244
  exports.Prisma.RoleCategoryScalarFieldEnum = {
228
245
  id: 'id',
229
246
  anchors: 'anchors',
@@ -314,6 +331,7 @@ exports.Prisma.ModelName = {
314
331
  Contract: 'Contract',
315
332
  Mission: 'Mission',
316
333
  MissionSpec: 'MissionSpec',
334
+ MissionSpecPreFill: 'MissionSpecPreFill',
317
335
  RoleCategory: 'RoleCategory',
318
336
  TalentCategory: 'TalentCategory',
319
337
  TalentIndustry: 'TalentIndustry',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "keywords": [],
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist & npm run generate & tsc",