@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.
- package/dist/client/edge.js +20 -5
- package/dist/client/index-browser.js +15 -0
- package/dist/client/index.d.ts +1849 -149
- package/dist/client/index.js +20 -5
- package/dist/client/package.json +1 -1
- package/dist/client/schema.prisma +26 -9
- package/dist/client/wasm.js +15 -0
- package/package.json +1 -1
package/dist/client/package.json
CHANGED
|
@@ -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
|
|
499
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
484
500
|
firstName String?
|
|
485
501
|
lastName String?
|
|
486
|
-
username String?
|
|
487
|
-
email String?
|
|
488
|
-
isAdmin Boolean
|
|
489
|
-
createdMissionsModels Mission[]
|
|
490
|
-
ownedMissionsModels Mission[]
|
|
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
|
|
510
|
+
createdAt DateTime @db.Date
|
|
495
511
|
titles String[]
|
|
496
512
|
scrubbed String?
|
|
497
|
-
authoredMissionSpecs MissionSpec[]
|
|
498
|
-
modifiedMissionSpecs MissionSpec[]
|
|
513
|
+
authoredMissionSpecs MissionSpec[] @relation("author")
|
|
514
|
+
modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
|
|
515
|
+
missionSpecPreFills MissionSpecPreFill[] @relation("user")
|
|
499
516
|
|
|
500
517
|
@@map("users")
|
|
501
518
|
}
|
package/dist/client/wasm.js
CHANGED
|
@@ -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',
|