@a_team/prisma 2.1.11 → 2.1.13
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 -27
- package/dist/client/index-browser.js +15 -22
- package/dist/client/index.d.ts +1613 -1684
- package/dist/client/index.js +20 -27
- package/dist/client/package.json +1 -1
- package/dist/client/schema.prisma +27 -34
- package/dist/client/wasm.js +15 -22
- package/package.json +1 -1
package/dist/client/package.json
CHANGED
|
@@ -316,7 +316,7 @@ model Mission {
|
|
|
316
316
|
updatedAt DateTime? @db.Date
|
|
317
317
|
videoURL String?
|
|
318
318
|
website String?
|
|
319
|
-
plannedStart
|
|
319
|
+
plannedStart String?
|
|
320
320
|
overlapMinutes Int?
|
|
321
321
|
timezone String?
|
|
322
322
|
contracts Contract[]
|
|
@@ -345,11 +345,22 @@ enum MissionRoleStatus {
|
|
|
345
345
|
Ended
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
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")
|
|
353
364
|
}
|
|
354
365
|
|
|
355
366
|
model MissionSpec {
|
|
@@ -460,24 +471,6 @@ type ClientRoleQuestion {
|
|
|
460
471
|
updatedAt DateTime? @db.Date
|
|
461
472
|
}
|
|
462
473
|
|
|
463
|
-
model MissionSpecPreFill {
|
|
464
|
-
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
465
|
-
userId String @db.ObjectId
|
|
466
|
-
missionName String?
|
|
467
|
-
plannedStart String?
|
|
468
|
-
companyDescription String?
|
|
469
|
-
missionDescription String?
|
|
470
|
-
timezone String?
|
|
471
|
-
openRoles Json?
|
|
472
|
-
status String @default("pending") // "pending", "completed", or "failed"
|
|
473
|
-
createdAt DateTime @default(now())
|
|
474
|
-
updatedAt DateTime @updatedAt
|
|
475
|
-
|
|
476
|
-
user User @relation(fields: [userId], references: [id], name: "user")
|
|
477
|
-
|
|
478
|
-
@@map("missionSpecPreFills")
|
|
479
|
-
}
|
|
480
|
-
|
|
481
474
|
model RoleCategory {
|
|
482
475
|
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
483
476
|
anchors String[]
|
|
@@ -525,23 +518,23 @@ model TalentIndustry {
|
|
|
525
518
|
}
|
|
526
519
|
|
|
527
520
|
model User {
|
|
528
|
-
id String
|
|
521
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
529
522
|
firstName String?
|
|
530
523
|
lastName String?
|
|
531
|
-
username String?
|
|
532
|
-
email String?
|
|
533
|
-
isAdmin Boolean
|
|
534
|
-
createdMissionsModels Mission[]
|
|
535
|
-
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")
|
|
536
529
|
type String
|
|
537
530
|
pictureURL String?
|
|
538
531
|
status String
|
|
539
|
-
createdAt DateTime
|
|
532
|
+
createdAt DateTime @db.Date
|
|
540
533
|
titles String[]
|
|
541
534
|
scrubbed String?
|
|
542
|
-
authoredMissionSpecs MissionSpec[]
|
|
543
|
-
modifiedMissionSpecs MissionSpec[]
|
|
544
|
-
|
|
535
|
+
authoredMissionSpecs MissionSpec[] @relation("author")
|
|
536
|
+
modifiedMissionSpecs MissionSpec[] @relation("lastModifier")
|
|
537
|
+
missionPreFills MissionPreFill[] @relation("user")
|
|
545
538
|
|
|
546
539
|
@@map("users")
|
|
547
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',
|
|
@@ -322,13 +322,6 @@ exports.MissionStatus = exports.$Enums.MissionStatus = {
|
|
|
322
322
|
Archived: 'Archived'
|
|
323
323
|
};
|
|
324
324
|
|
|
325
|
-
exports.MissionPlannedStart = exports.$Enums.MissionPlannedStart = {
|
|
326
|
-
Immediately: 'Immediately',
|
|
327
|
-
NextMonth: 'NextMonth',
|
|
328
|
-
WithinThreeMonths: 'WithinThreeMonths',
|
|
329
|
-
Exploring: 'Exploring'
|
|
330
|
-
};
|
|
331
|
-
|
|
332
325
|
exports.MissionSpecStatus = exports.$Enums.MissionSpecStatus = {
|
|
333
326
|
spec: 'spec',
|
|
334
327
|
formation: 'formation',
|
|
@@ -357,8 +350,8 @@ exports.Prisma.ModelName = {
|
|
|
357
350
|
Company: 'Company',
|
|
358
351
|
Contract: 'Contract',
|
|
359
352
|
Mission: 'Mission',
|
|
353
|
+
MissionPreFill: 'MissionPreFill',
|
|
360
354
|
MissionSpec: 'MissionSpec',
|
|
361
|
-
MissionSpecPreFill: 'MissionSpecPreFill',
|
|
362
355
|
RoleCategory: 'RoleCategory',
|
|
363
356
|
TalentCategory: 'TalentCategory',
|
|
364
357
|
TalentIndustry: 'TalentIndustry',
|