@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.
- package/dist/client/edge.js +20 -20
- package/dist/client/index-browser.js +15 -15
- package/dist/client/index.d.ts +1600 -1600
- package/dist/client/index.js +20 -20
- package/dist/client/package.json +1 -1
- package/dist/client/schema.prisma +28 -28
- package/dist/client/wasm.js +15 -15
- package/package.json +1 -1
package/dist/client/package.json
CHANGED
|
@@ -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
|
|
521
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
522
522
|
firstName String?
|
|
523
523
|
lastName String?
|
|
524
|
-
username String?
|
|
525
|
-
email String?
|
|
526
|
-
isAdmin Boolean
|
|
527
|
-
createdMissionsModels Mission[]
|
|
528
|
-
ownedMissionsModels Mission[]
|
|
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
|
|
532
|
+
createdAt DateTime @db.Date
|
|
533
533
|
titles String[]
|
|
534
534
|
scrubbed String?
|
|
535
|
-
authoredMissionSpecs MissionSpec[]
|
|
536
|
-
modifiedMissionSpecs MissionSpec[]
|
|
537
|
-
|
|
535
|
+
authoredMissionSpecs MissionSpec[] @relation("author")
|
|
536
|
+
modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
|
|
537
|
+
missionPrefills MissionPrefill[] @relation("user")
|
|
538
538
|
|
|
539
539
|
@@map("users")
|
|
540
540
|
}
|
package/dist/client/wasm.js
CHANGED
|
@@ -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',
|