@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.
- package/dist/client/edge.js +24 -6
- package/dist/client/index-browser.js +19 -1
- package/dist/client/index.d.ts +2011 -143
- package/dist/client/index.js +24 -6
- package/dist/client/package.json +1 -1
- package/dist/client/schema.prisma +29 -9
- package/dist/client/wasm.js +19 -1
- package/package.json +1 -1
package/dist/client/package.json
CHANGED
|
@@ -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
|
|
499
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
481
500
|
firstName String?
|
|
482
501
|
lastName String?
|
|
483
|
-
username String?
|
|
484
|
-
email String?
|
|
485
|
-
isAdmin Boolean
|
|
486
|
-
createdMissionsModels Mission[]
|
|
487
|
-
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")
|
|
488
507
|
type String
|
|
489
508
|
pictureURL String?
|
|
490
509
|
status String
|
|
491
|
-
createdAt DateTime
|
|
510
|
+
createdAt DateTime @db.Date
|
|
492
511
|
titles String[]
|
|
493
512
|
scrubbed String?
|
|
494
|
-
authoredMissionSpecs MissionSpec[]
|
|
495
|
-
modifiedMissionSpecs MissionSpec[]
|
|
513
|
+
authoredMissionSpecs MissionSpec[] @relation("author")
|
|
514
|
+
modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
|
|
515
|
+
missionSpecPreFills MissionSpecPreFill[] @relation("user")
|
|
496
516
|
|
|
497
517
|
@@map("users")
|
|
498
518
|
}
|
package/dist/client/wasm.js
CHANGED
|
@@ -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',
|