@allbluecn/database 0.4.12 → 0.4.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/generated/browser.ts +15 -0
- package/generated/client.ts +15 -0
- package/generated/internal/class.ts +34 -4
- package/generated/internal/prismaNamespace.ts +274 -3
- package/generated/internal/prismaNamespaceBrowser.ts +48 -2
- package/generated/models/Notification.ts +1485 -0
- package/generated/models/NotificationPreference.ts +1289 -0
- package/generated/models/TeamInvitation.ts +257 -22
- package/generated/models/TeamJoinRequest.ts +1798 -0
- package/generated/models/User.ts +3505 -1125
- package/generated/models.ts +3 -0
- package/generated-sqlite/browser.ts +15 -0
- package/generated-sqlite/client.ts +15 -0
- package/generated-sqlite/internal/class.ts +34 -4
- package/generated-sqlite/internal/prismaNamespace.ts +274 -3
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +48 -2
- package/generated-sqlite/models/Notification.ts +1482 -0
- package/generated-sqlite/models/NotificationPreference.ts +1287 -0
- package/generated-sqlite/models/TeamInvitation.ts +257 -22
- package/generated-sqlite/models/TeamJoinRequest.ts +1793 -0
- package/generated-sqlite/models/User.ts +2578 -662
- package/generated-sqlite/models.ts +3 -0
- package/migrations/20260826162419_add_applicant_email/migration.sql +2 -0
- package/migrations/20260826170000_team_invitation_email_nullable_message/migration.sql +6 -0
- package/migrations/20260826180000_backfill_invitation_accepted_by/migration.sql +8 -0
- package/migrations/20260827044250_add_team_join_request/migration.sql +29 -0
- package/migrations/20260827102354_add_notifications/migration.sql +37 -0
- package/package.json +2 -2
- package/schema.prisma +67 -11
- package/schema.sqlite.prisma +66 -11
|
@@ -391,6 +391,7 @@ export const ModelName = {
|
|
|
391
391
|
Workspace: 'Workspace',
|
|
392
392
|
TeamMembership: 'TeamMembership',
|
|
393
393
|
TeamInvitation: 'TeamInvitation',
|
|
394
|
+
TeamJoinRequest: 'TeamJoinRequest',
|
|
394
395
|
ProjectActivity: 'ProjectActivity',
|
|
395
396
|
ChatThread: 'ChatThread',
|
|
396
397
|
ChatMessage: 'ChatMessage',
|
|
@@ -460,7 +461,9 @@ export const ModelName = {
|
|
|
460
461
|
ComplianceExport: 'ComplianceExport',
|
|
461
462
|
UserAgent: 'UserAgent',
|
|
462
463
|
UserSkill: 'UserSkill',
|
|
463
|
-
DeveloperLog: 'DeveloperLog'
|
|
464
|
+
DeveloperLog: 'DeveloperLog',
|
|
465
|
+
Notification: 'Notification',
|
|
466
|
+
NotificationPreference: 'NotificationPreference'
|
|
464
467
|
} as const
|
|
465
468
|
|
|
466
469
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -476,7 +479,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
476
479
|
omit: GlobalOmitOptions
|
|
477
480
|
}
|
|
478
481
|
meta: {
|
|
479
|
-
modelProps: "systemSetting" | "user" | "project" | "projectMember" | "workspace" | "teamMembership" | "teamInvitation" | "projectActivity" | "chatThread" | "chatMessage" | "chatRun" | "chatInterrupt" | "generationRun" | "loginLog" | "invitationCode" | "invitationUse" | "passwordResetToken" | "knowledgeBase" | "knowledgeDocument" | "pRD" | "agentConversation" | "agentMessage" | "component" | "block" | "blockComponent" | "template" | "templateBlock" | "pRDPage" | "componentInstance" | "blockInstance" | "pRDVersion" | "pageVersion" | "review" | "reviewComment" | "comment" | "commentIgnore" | "share" | "tag" | "pRDTag" | "componentTag" | "reference" | "shareVersion" | "anyHubApp" | "anyHubPermission" | "anyHubMarketApp" | "anyHubRecommendation" | "anyHubRecommender" | "designProject" | "artboard" | "artboardExport" | "aiProvider" | "aiProviderConfig" | "thirdPartyDependency" | "legalRegulation" | "industryCompliance" | "dictionaryTerm" | "websiteBookmark" | "bookmarkCategory" | "knowledgeShareRecord" | "articleFavorite" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog"
|
|
482
|
+
modelProps: "systemSetting" | "user" | "project" | "projectMember" | "workspace" | "teamMembership" | "teamInvitation" | "teamJoinRequest" | "projectActivity" | "chatThread" | "chatMessage" | "chatRun" | "chatInterrupt" | "generationRun" | "loginLog" | "invitationCode" | "invitationUse" | "passwordResetToken" | "knowledgeBase" | "knowledgeDocument" | "pRD" | "agentConversation" | "agentMessage" | "component" | "block" | "blockComponent" | "template" | "templateBlock" | "pRDPage" | "componentInstance" | "blockInstance" | "pRDVersion" | "pageVersion" | "review" | "reviewComment" | "comment" | "commentIgnore" | "share" | "tag" | "pRDTag" | "componentTag" | "reference" | "shareVersion" | "anyHubApp" | "anyHubPermission" | "anyHubMarketApp" | "anyHubRecommendation" | "anyHubRecommender" | "designProject" | "artboard" | "artboardExport" | "aiProvider" | "aiProviderConfig" | "thirdPartyDependency" | "legalRegulation" | "industryCompliance" | "dictionaryTerm" | "websiteBookmark" | "bookmarkCategory" | "knowledgeShareRecord" | "articleFavorite" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog" | "notification" | "notificationPreference"
|
|
480
483
|
txIsolationLevel: TransactionIsolationLevel
|
|
481
484
|
}
|
|
482
485
|
model: {
|
|
@@ -998,6 +1001,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
998
1001
|
}
|
|
999
1002
|
}
|
|
1000
1003
|
}
|
|
1004
|
+
TeamJoinRequest: {
|
|
1005
|
+
payload: Prisma.$TeamJoinRequestPayload<ExtArgs>
|
|
1006
|
+
fields: Prisma.TeamJoinRequestFieldRefs
|
|
1007
|
+
operations: {
|
|
1008
|
+
findUnique: {
|
|
1009
|
+
args: Prisma.TeamJoinRequestFindUniqueArgs<ExtArgs>
|
|
1010
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload> | null
|
|
1011
|
+
}
|
|
1012
|
+
findUniqueOrThrow: {
|
|
1013
|
+
args: Prisma.TeamJoinRequestFindUniqueOrThrowArgs<ExtArgs>
|
|
1014
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1015
|
+
}
|
|
1016
|
+
findFirst: {
|
|
1017
|
+
args: Prisma.TeamJoinRequestFindFirstArgs<ExtArgs>
|
|
1018
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload> | null
|
|
1019
|
+
}
|
|
1020
|
+
findFirstOrThrow: {
|
|
1021
|
+
args: Prisma.TeamJoinRequestFindFirstOrThrowArgs<ExtArgs>
|
|
1022
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1023
|
+
}
|
|
1024
|
+
findMany: {
|
|
1025
|
+
args: Prisma.TeamJoinRequestFindManyArgs<ExtArgs>
|
|
1026
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>[]
|
|
1027
|
+
}
|
|
1028
|
+
create: {
|
|
1029
|
+
args: Prisma.TeamJoinRequestCreateArgs<ExtArgs>
|
|
1030
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1031
|
+
}
|
|
1032
|
+
createMany: {
|
|
1033
|
+
args: Prisma.TeamJoinRequestCreateManyArgs<ExtArgs>
|
|
1034
|
+
result: BatchPayload
|
|
1035
|
+
}
|
|
1036
|
+
createManyAndReturn: {
|
|
1037
|
+
args: Prisma.TeamJoinRequestCreateManyAndReturnArgs<ExtArgs>
|
|
1038
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>[]
|
|
1039
|
+
}
|
|
1040
|
+
delete: {
|
|
1041
|
+
args: Prisma.TeamJoinRequestDeleteArgs<ExtArgs>
|
|
1042
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1043
|
+
}
|
|
1044
|
+
update: {
|
|
1045
|
+
args: Prisma.TeamJoinRequestUpdateArgs<ExtArgs>
|
|
1046
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1047
|
+
}
|
|
1048
|
+
deleteMany: {
|
|
1049
|
+
args: Prisma.TeamJoinRequestDeleteManyArgs<ExtArgs>
|
|
1050
|
+
result: BatchPayload
|
|
1051
|
+
}
|
|
1052
|
+
updateMany: {
|
|
1053
|
+
args: Prisma.TeamJoinRequestUpdateManyArgs<ExtArgs>
|
|
1054
|
+
result: BatchPayload
|
|
1055
|
+
}
|
|
1056
|
+
updateManyAndReturn: {
|
|
1057
|
+
args: Prisma.TeamJoinRequestUpdateManyAndReturnArgs<ExtArgs>
|
|
1058
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>[]
|
|
1059
|
+
}
|
|
1060
|
+
upsert: {
|
|
1061
|
+
args: Prisma.TeamJoinRequestUpsertArgs<ExtArgs>
|
|
1062
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1063
|
+
}
|
|
1064
|
+
aggregate: {
|
|
1065
|
+
args: Prisma.TeamJoinRequestAggregateArgs<ExtArgs>
|
|
1066
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateTeamJoinRequest>
|
|
1067
|
+
}
|
|
1068
|
+
groupBy: {
|
|
1069
|
+
args: Prisma.TeamJoinRequestGroupByArgs<ExtArgs>
|
|
1070
|
+
result: runtime.Types.Utils.Optional<Prisma.TeamJoinRequestGroupByOutputType>[]
|
|
1071
|
+
}
|
|
1072
|
+
count: {
|
|
1073
|
+
args: Prisma.TeamJoinRequestCountArgs<ExtArgs>
|
|
1074
|
+
result: runtime.Types.Utils.Optional<Prisma.TeamJoinRequestCountAggregateOutputType> | number
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1001
1078
|
ProjectActivity: {
|
|
1002
1079
|
payload: Prisma.$ProjectActivityPayload<ExtArgs>
|
|
1003
1080
|
fields: Prisma.ProjectActivityFieldRefs
|
|
@@ -6178,6 +6255,154 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
6178
6255
|
}
|
|
6179
6256
|
}
|
|
6180
6257
|
}
|
|
6258
|
+
Notification: {
|
|
6259
|
+
payload: Prisma.$NotificationPayload<ExtArgs>
|
|
6260
|
+
fields: Prisma.NotificationFieldRefs
|
|
6261
|
+
operations: {
|
|
6262
|
+
findUnique: {
|
|
6263
|
+
args: Prisma.NotificationFindUniqueArgs<ExtArgs>
|
|
6264
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload> | null
|
|
6265
|
+
}
|
|
6266
|
+
findUniqueOrThrow: {
|
|
6267
|
+
args: Prisma.NotificationFindUniqueOrThrowArgs<ExtArgs>
|
|
6268
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
6269
|
+
}
|
|
6270
|
+
findFirst: {
|
|
6271
|
+
args: Prisma.NotificationFindFirstArgs<ExtArgs>
|
|
6272
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload> | null
|
|
6273
|
+
}
|
|
6274
|
+
findFirstOrThrow: {
|
|
6275
|
+
args: Prisma.NotificationFindFirstOrThrowArgs<ExtArgs>
|
|
6276
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
6277
|
+
}
|
|
6278
|
+
findMany: {
|
|
6279
|
+
args: Prisma.NotificationFindManyArgs<ExtArgs>
|
|
6280
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>[]
|
|
6281
|
+
}
|
|
6282
|
+
create: {
|
|
6283
|
+
args: Prisma.NotificationCreateArgs<ExtArgs>
|
|
6284
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
6285
|
+
}
|
|
6286
|
+
createMany: {
|
|
6287
|
+
args: Prisma.NotificationCreateManyArgs<ExtArgs>
|
|
6288
|
+
result: BatchPayload
|
|
6289
|
+
}
|
|
6290
|
+
createManyAndReturn: {
|
|
6291
|
+
args: Prisma.NotificationCreateManyAndReturnArgs<ExtArgs>
|
|
6292
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>[]
|
|
6293
|
+
}
|
|
6294
|
+
delete: {
|
|
6295
|
+
args: Prisma.NotificationDeleteArgs<ExtArgs>
|
|
6296
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
6297
|
+
}
|
|
6298
|
+
update: {
|
|
6299
|
+
args: Prisma.NotificationUpdateArgs<ExtArgs>
|
|
6300
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
6301
|
+
}
|
|
6302
|
+
deleteMany: {
|
|
6303
|
+
args: Prisma.NotificationDeleteManyArgs<ExtArgs>
|
|
6304
|
+
result: BatchPayload
|
|
6305
|
+
}
|
|
6306
|
+
updateMany: {
|
|
6307
|
+
args: Prisma.NotificationUpdateManyArgs<ExtArgs>
|
|
6308
|
+
result: BatchPayload
|
|
6309
|
+
}
|
|
6310
|
+
updateManyAndReturn: {
|
|
6311
|
+
args: Prisma.NotificationUpdateManyAndReturnArgs<ExtArgs>
|
|
6312
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>[]
|
|
6313
|
+
}
|
|
6314
|
+
upsert: {
|
|
6315
|
+
args: Prisma.NotificationUpsertArgs<ExtArgs>
|
|
6316
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
6317
|
+
}
|
|
6318
|
+
aggregate: {
|
|
6319
|
+
args: Prisma.NotificationAggregateArgs<ExtArgs>
|
|
6320
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateNotification>
|
|
6321
|
+
}
|
|
6322
|
+
groupBy: {
|
|
6323
|
+
args: Prisma.NotificationGroupByArgs<ExtArgs>
|
|
6324
|
+
result: runtime.Types.Utils.Optional<Prisma.NotificationGroupByOutputType>[]
|
|
6325
|
+
}
|
|
6326
|
+
count: {
|
|
6327
|
+
args: Prisma.NotificationCountArgs<ExtArgs>
|
|
6328
|
+
result: runtime.Types.Utils.Optional<Prisma.NotificationCountAggregateOutputType> | number
|
|
6329
|
+
}
|
|
6330
|
+
}
|
|
6331
|
+
}
|
|
6332
|
+
NotificationPreference: {
|
|
6333
|
+
payload: Prisma.$NotificationPreferencePayload<ExtArgs>
|
|
6334
|
+
fields: Prisma.NotificationPreferenceFieldRefs
|
|
6335
|
+
operations: {
|
|
6336
|
+
findUnique: {
|
|
6337
|
+
args: Prisma.NotificationPreferenceFindUniqueArgs<ExtArgs>
|
|
6338
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload> | null
|
|
6339
|
+
}
|
|
6340
|
+
findUniqueOrThrow: {
|
|
6341
|
+
args: Prisma.NotificationPreferenceFindUniqueOrThrowArgs<ExtArgs>
|
|
6342
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
6343
|
+
}
|
|
6344
|
+
findFirst: {
|
|
6345
|
+
args: Prisma.NotificationPreferenceFindFirstArgs<ExtArgs>
|
|
6346
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload> | null
|
|
6347
|
+
}
|
|
6348
|
+
findFirstOrThrow: {
|
|
6349
|
+
args: Prisma.NotificationPreferenceFindFirstOrThrowArgs<ExtArgs>
|
|
6350
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
6351
|
+
}
|
|
6352
|
+
findMany: {
|
|
6353
|
+
args: Prisma.NotificationPreferenceFindManyArgs<ExtArgs>
|
|
6354
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>[]
|
|
6355
|
+
}
|
|
6356
|
+
create: {
|
|
6357
|
+
args: Prisma.NotificationPreferenceCreateArgs<ExtArgs>
|
|
6358
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
6359
|
+
}
|
|
6360
|
+
createMany: {
|
|
6361
|
+
args: Prisma.NotificationPreferenceCreateManyArgs<ExtArgs>
|
|
6362
|
+
result: BatchPayload
|
|
6363
|
+
}
|
|
6364
|
+
createManyAndReturn: {
|
|
6365
|
+
args: Prisma.NotificationPreferenceCreateManyAndReturnArgs<ExtArgs>
|
|
6366
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>[]
|
|
6367
|
+
}
|
|
6368
|
+
delete: {
|
|
6369
|
+
args: Prisma.NotificationPreferenceDeleteArgs<ExtArgs>
|
|
6370
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
6371
|
+
}
|
|
6372
|
+
update: {
|
|
6373
|
+
args: Prisma.NotificationPreferenceUpdateArgs<ExtArgs>
|
|
6374
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
6375
|
+
}
|
|
6376
|
+
deleteMany: {
|
|
6377
|
+
args: Prisma.NotificationPreferenceDeleteManyArgs<ExtArgs>
|
|
6378
|
+
result: BatchPayload
|
|
6379
|
+
}
|
|
6380
|
+
updateMany: {
|
|
6381
|
+
args: Prisma.NotificationPreferenceUpdateManyArgs<ExtArgs>
|
|
6382
|
+
result: BatchPayload
|
|
6383
|
+
}
|
|
6384
|
+
updateManyAndReturn: {
|
|
6385
|
+
args: Prisma.NotificationPreferenceUpdateManyAndReturnArgs<ExtArgs>
|
|
6386
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>[]
|
|
6387
|
+
}
|
|
6388
|
+
upsert: {
|
|
6389
|
+
args: Prisma.NotificationPreferenceUpsertArgs<ExtArgs>
|
|
6390
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
6391
|
+
}
|
|
6392
|
+
aggregate: {
|
|
6393
|
+
args: Prisma.NotificationPreferenceAggregateArgs<ExtArgs>
|
|
6394
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateNotificationPreference>
|
|
6395
|
+
}
|
|
6396
|
+
groupBy: {
|
|
6397
|
+
args: Prisma.NotificationPreferenceGroupByArgs<ExtArgs>
|
|
6398
|
+
result: runtime.Types.Utils.Optional<Prisma.NotificationPreferenceGroupByOutputType>[]
|
|
6399
|
+
}
|
|
6400
|
+
count: {
|
|
6401
|
+
args: Prisma.NotificationPreferenceCountArgs<ExtArgs>
|
|
6402
|
+
result: runtime.Types.Utils.Optional<Prisma.NotificationPreferenceCountAggregateOutputType> | number
|
|
6403
|
+
}
|
|
6404
|
+
}
|
|
6405
|
+
}
|
|
6181
6406
|
}
|
|
6182
6407
|
} & {
|
|
6183
6408
|
other: {
|
|
@@ -6315,12 +6540,29 @@ export const TeamInvitationScalarFieldEnum = {
|
|
|
6315
6540
|
status: 'status',
|
|
6316
6541
|
expiresAt: 'expiresAt',
|
|
6317
6542
|
createdAt: 'createdAt',
|
|
6318
|
-
acceptedBy: 'acceptedBy'
|
|
6543
|
+
acceptedBy: 'acceptedBy',
|
|
6544
|
+
applicantEmail: 'applicantEmail',
|
|
6545
|
+
message: 'message'
|
|
6319
6546
|
} as const
|
|
6320
6547
|
|
|
6321
6548
|
export type TeamInvitationScalarFieldEnum = (typeof TeamInvitationScalarFieldEnum)[keyof typeof TeamInvitationScalarFieldEnum]
|
|
6322
6549
|
|
|
6323
6550
|
|
|
6551
|
+
export const TeamJoinRequestScalarFieldEnum = {
|
|
6552
|
+
id: 'id',
|
|
6553
|
+
invitationId: 'invitationId',
|
|
6554
|
+
ownerId: 'ownerId',
|
|
6555
|
+
userId: 'userId',
|
|
6556
|
+
email: 'email',
|
|
6557
|
+
status: 'status',
|
|
6558
|
+
seatType: 'seatType',
|
|
6559
|
+
createdAt: 'createdAt',
|
|
6560
|
+
processedAt: 'processedAt'
|
|
6561
|
+
} as const
|
|
6562
|
+
|
|
6563
|
+
export type TeamJoinRequestScalarFieldEnum = (typeof TeamJoinRequestScalarFieldEnum)[keyof typeof TeamJoinRequestScalarFieldEnum]
|
|
6564
|
+
|
|
6565
|
+
|
|
6324
6566
|
export const ProjectActivityScalarFieldEnum = {
|
|
6325
6567
|
id: 'id',
|
|
6326
6568
|
projectId: 'projectId',
|
|
@@ -7454,6 +7696,32 @@ export const DeveloperLogScalarFieldEnum = {
|
|
|
7454
7696
|
export type DeveloperLogScalarFieldEnum = (typeof DeveloperLogScalarFieldEnum)[keyof typeof DeveloperLogScalarFieldEnum]
|
|
7455
7697
|
|
|
7456
7698
|
|
|
7699
|
+
export const NotificationScalarFieldEnum = {
|
|
7700
|
+
id: 'id',
|
|
7701
|
+
userId: 'userId',
|
|
7702
|
+
category: 'category',
|
|
7703
|
+
type: 'type',
|
|
7704
|
+
title: 'title',
|
|
7705
|
+
body: 'body',
|
|
7706
|
+
link: 'link',
|
|
7707
|
+
readAt: 'readAt',
|
|
7708
|
+
createdAt: 'createdAt'
|
|
7709
|
+
} as const
|
|
7710
|
+
|
|
7711
|
+
export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
|
|
7712
|
+
|
|
7713
|
+
|
|
7714
|
+
export const NotificationPreferenceScalarFieldEnum = {
|
|
7715
|
+
userId: 'userId',
|
|
7716
|
+
categories: 'categories',
|
|
7717
|
+
dndEnabled: 'dndEnabled',
|
|
7718
|
+
dndStart: 'dndStart',
|
|
7719
|
+
dndEnd: 'dndEnd'
|
|
7720
|
+
} as const
|
|
7721
|
+
|
|
7722
|
+
export type NotificationPreferenceScalarFieldEnum = (typeof NotificationPreferenceScalarFieldEnum)[keyof typeof NotificationPreferenceScalarFieldEnum]
|
|
7723
|
+
|
|
7724
|
+
|
|
7457
7725
|
export const SortOrder = {
|
|
7458
7726
|
asc: 'asc',
|
|
7459
7727
|
desc: 'desc'
|
|
@@ -7673,6 +7941,7 @@ export type GlobalOmitConfig = {
|
|
|
7673
7941
|
workspace?: Prisma.WorkspaceOmit
|
|
7674
7942
|
teamMembership?: Prisma.TeamMembershipOmit
|
|
7675
7943
|
teamInvitation?: Prisma.TeamInvitationOmit
|
|
7944
|
+
teamJoinRequest?: Prisma.TeamJoinRequestOmit
|
|
7676
7945
|
projectActivity?: Prisma.ProjectActivityOmit
|
|
7677
7946
|
chatThread?: Prisma.ChatThreadOmit
|
|
7678
7947
|
chatMessage?: Prisma.ChatMessageOmit
|
|
@@ -7743,6 +8012,8 @@ export type GlobalOmitConfig = {
|
|
|
7743
8012
|
userAgent?: Prisma.UserAgentOmit
|
|
7744
8013
|
userSkill?: Prisma.UserSkillOmit
|
|
7745
8014
|
developerLog?: Prisma.DeveloperLogOmit
|
|
8015
|
+
notification?: Prisma.NotificationOmit
|
|
8016
|
+
notificationPreference?: Prisma.NotificationPreferenceOmit
|
|
7746
8017
|
}
|
|
7747
8018
|
|
|
7748
8019
|
/* Types for Logging */
|
|
@@ -58,6 +58,7 @@ export const ModelName = {
|
|
|
58
58
|
Workspace: 'Workspace',
|
|
59
59
|
TeamMembership: 'TeamMembership',
|
|
60
60
|
TeamInvitation: 'TeamInvitation',
|
|
61
|
+
TeamJoinRequest: 'TeamJoinRequest',
|
|
61
62
|
ProjectActivity: 'ProjectActivity',
|
|
62
63
|
ChatThread: 'ChatThread',
|
|
63
64
|
ChatMessage: 'ChatMessage',
|
|
@@ -127,7 +128,9 @@ export const ModelName = {
|
|
|
127
128
|
ComplianceExport: 'ComplianceExport',
|
|
128
129
|
UserAgent: 'UserAgent',
|
|
129
130
|
UserSkill: 'UserSkill',
|
|
130
|
-
DeveloperLog: 'DeveloperLog'
|
|
131
|
+
DeveloperLog: 'DeveloperLog',
|
|
132
|
+
Notification: 'Notification',
|
|
133
|
+
NotificationPreference: 'NotificationPreference'
|
|
131
134
|
} as const
|
|
132
135
|
|
|
133
136
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -244,12 +247,29 @@ export const TeamInvitationScalarFieldEnum = {
|
|
|
244
247
|
status: 'status',
|
|
245
248
|
expiresAt: 'expiresAt',
|
|
246
249
|
createdAt: 'createdAt',
|
|
247
|
-
acceptedBy: 'acceptedBy'
|
|
250
|
+
acceptedBy: 'acceptedBy',
|
|
251
|
+
applicantEmail: 'applicantEmail',
|
|
252
|
+
message: 'message'
|
|
248
253
|
} as const
|
|
249
254
|
|
|
250
255
|
export type TeamInvitationScalarFieldEnum = (typeof TeamInvitationScalarFieldEnum)[keyof typeof TeamInvitationScalarFieldEnum]
|
|
251
256
|
|
|
252
257
|
|
|
258
|
+
export const TeamJoinRequestScalarFieldEnum = {
|
|
259
|
+
id: 'id',
|
|
260
|
+
invitationId: 'invitationId',
|
|
261
|
+
ownerId: 'ownerId',
|
|
262
|
+
userId: 'userId',
|
|
263
|
+
email: 'email',
|
|
264
|
+
status: 'status',
|
|
265
|
+
seatType: 'seatType',
|
|
266
|
+
createdAt: 'createdAt',
|
|
267
|
+
processedAt: 'processedAt'
|
|
268
|
+
} as const
|
|
269
|
+
|
|
270
|
+
export type TeamJoinRequestScalarFieldEnum = (typeof TeamJoinRequestScalarFieldEnum)[keyof typeof TeamJoinRequestScalarFieldEnum]
|
|
271
|
+
|
|
272
|
+
|
|
253
273
|
export const ProjectActivityScalarFieldEnum = {
|
|
254
274
|
id: 'id',
|
|
255
275
|
projectId: 'projectId',
|
|
@@ -1383,6 +1403,32 @@ export const DeveloperLogScalarFieldEnum = {
|
|
|
1383
1403
|
export type DeveloperLogScalarFieldEnum = (typeof DeveloperLogScalarFieldEnum)[keyof typeof DeveloperLogScalarFieldEnum]
|
|
1384
1404
|
|
|
1385
1405
|
|
|
1406
|
+
export const NotificationScalarFieldEnum = {
|
|
1407
|
+
id: 'id',
|
|
1408
|
+
userId: 'userId',
|
|
1409
|
+
category: 'category',
|
|
1410
|
+
type: 'type',
|
|
1411
|
+
title: 'title',
|
|
1412
|
+
body: 'body',
|
|
1413
|
+
link: 'link',
|
|
1414
|
+
readAt: 'readAt',
|
|
1415
|
+
createdAt: 'createdAt'
|
|
1416
|
+
} as const
|
|
1417
|
+
|
|
1418
|
+
export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
export const NotificationPreferenceScalarFieldEnum = {
|
|
1422
|
+
userId: 'userId',
|
|
1423
|
+
categories: 'categories',
|
|
1424
|
+
dndEnabled: 'dndEnabled',
|
|
1425
|
+
dndStart: 'dndStart',
|
|
1426
|
+
dndEnd: 'dndEnd'
|
|
1427
|
+
} as const
|
|
1428
|
+
|
|
1429
|
+
export type NotificationPreferenceScalarFieldEnum = (typeof NotificationPreferenceScalarFieldEnum)[keyof typeof NotificationPreferenceScalarFieldEnum]
|
|
1430
|
+
|
|
1431
|
+
|
|
1386
1432
|
export const SortOrder = {
|
|
1387
1433
|
asc: 'asc',
|
|
1388
1434
|
desc: 'desc'
|