@a_team/prisma 2.1.12 → 2.1.14

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-f707efccaa05155487464f1904e3137fe85d1bded8943ed57604c20a860cd644",
2
+ "name": "prisma-client-5cbfaed8af3609ab60a205185b6ba19525a108f8740f3c8fd5c285428777e120",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -345,6 +345,24 @@ enum MissionRoleStatus {
345
345
  Ended
346
346
  }
347
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
+
348
366
  model MissionSpec {
349
367
  id String @id @default(auto()) @map("_id") @db.ObjectId
350
368
  account Account? @relation(fields: [accountId], references: [id])
@@ -453,24 +471,6 @@ type ClientRoleQuestion {
453
471
  updatedAt DateTime? @db.Date
454
472
  }
455
473
 
456
- model MissionSpecPreFill {
457
- id String @id @default(auto()) @map("_id") @db.ObjectId
458
- userId String @db.ObjectId
459
- missionName String?
460
- plannedStart String?
461
- companyDescription String?
462
- missionDescription String?
463
- timezone String?
464
- openRoles Json?
465
- status String @default("pending") // "pending", "completed", or "failed"
466
- createdAt DateTime @default(now())
467
- updatedAt DateTime @updatedAt
468
-
469
- user User @relation(fields: [userId], references: [id], name: "user")
470
-
471
- @@map("missionSpecPreFills")
472
- }
473
-
474
474
  model RoleCategory {
475
475
  id String @id @default(auto()) @map("_id") @db.ObjectId
476
476
  anchors String[]
@@ -518,23 +518,23 @@ model TalentIndustry {
518
518
  }
519
519
 
520
520
  model User {
521
- id String @id @default(auto()) @map("_id") @db.ObjectId
521
+ id String @id @default(auto()) @map("_id") @db.ObjectId
522
522
  firstName String?
523
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")
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
529
  type String
530
530
  pictureURL String?
531
531
  status String
532
- createdAt DateTime @db.Date
532
+ createdAt DateTime @db.Date
533
533
  titles String[]
534
534
  scrubbed String?
535
- authoredMissionSpecs MissionSpec[] @relation("author")
536
- modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
537
- missionSpecPreFills MissionSpecPreFill[] @relation("user")
535
+ authoredMissionSpecs MissionSpec[] @relation("author")
536
+ modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
537
+ missionPrefills MissionPrefill[] @relation("user")
538
538
 
539
539
  @@map("users")
540
540
  }
@@ -203,6 +203,20 @@ exports.Prisma.MissionScalarFieldEnum = {
203
203
  timezone: 'timezone'
204
204
  };
205
205
 
206
+ exports.Prisma.MissionPrefillScalarFieldEnum = {
207
+ id: 'id',
208
+ userId: 'userId',
209
+ missionName: 'missionName',
210
+ plannedStart: 'plannedStart',
211
+ companyDescription: 'companyDescription',
212
+ missionDescription: 'missionDescription',
213
+ timezone: 'timezone',
214
+ openRoles: 'openRoles',
215
+ status: 'status',
216
+ createdAt: 'createdAt',
217
+ updatedAt: 'updatedAt'
218
+ };
219
+
206
220
  exports.Prisma.MissionSpecScalarFieldEnum = {
207
221
  id: 'id',
208
222
  accountId: 'accountId',
@@ -227,20 +241,6 @@ exports.Prisma.MissionSpecScalarFieldEnum = {
227
241
  workingHoursNumberOfMinutesOverlap: 'workingHoursNumberOfMinutesOverlap'
228
242
  };
229
243
 
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
-
244
244
  exports.Prisma.RoleCategoryScalarFieldEnum = {
245
245
  id: 'id',
246
246
  anchors: 'anchors',
@@ -350,8 +350,8 @@ exports.Prisma.ModelName = {
350
350
  Company: 'Company',
351
351
  Contract: 'Contract',
352
352
  Mission: 'Mission',
353
+ MissionPrefill: 'MissionPrefill',
353
354
  MissionSpec: 'MissionSpec',
354
- MissionSpecPreFill: 'MissionSpecPreFill',
355
355
  RoleCategory: 'RoleCategory',
356
356
  TalentCategory: 'TalentCategory',
357
357
  TalentIndustry: 'TalentIndustry',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "2.1.12",
3
+ "version": "2.1.14",
4
4
  "keywords": [],
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist & npm run generate & tsc",