@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
|
@@ -392,6 +392,7 @@ export const ModelName = {
|
|
|
392
392
|
Workspace: 'Workspace',
|
|
393
393
|
TeamMembership: 'TeamMembership',
|
|
394
394
|
TeamInvitation: 'TeamInvitation',
|
|
395
|
+
TeamJoinRequest: 'TeamJoinRequest',
|
|
395
396
|
ProjectActivity: 'ProjectActivity',
|
|
396
397
|
ChatThread: 'ChatThread',
|
|
397
398
|
ChatMessage: 'ChatMessage',
|
|
@@ -479,7 +480,9 @@ export const ModelName = {
|
|
|
479
480
|
ComplianceExport: 'ComplianceExport',
|
|
480
481
|
UserAgent: 'UserAgent',
|
|
481
482
|
UserSkill: 'UserSkill',
|
|
482
|
-
DeveloperLog: 'DeveloperLog'
|
|
483
|
+
DeveloperLog: 'DeveloperLog',
|
|
484
|
+
Notification: 'Notification',
|
|
485
|
+
NotificationPreference: 'NotificationPreference'
|
|
483
486
|
} as const
|
|
484
487
|
|
|
485
488
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -495,7 +498,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
495
498
|
omit: GlobalOmitOptions
|
|
496
499
|
}
|
|
497
500
|
meta: {
|
|
498
|
-
modelProps: "systemSetting" | "user" | "account" | "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" | "story" | "label" | "storyLabel" | "storyActivity" | "sequenceCounter" | "storyComment" | "storyReaction" | "commentReaction" | "storyDependency" | "storyLink" | "storyAttachment" | "storyPrdLink" | "storyDocLink" | "storyFilterView" | "monitoringRequestLog" | "monitoringErrorReport" | "monitoringMetricsSnapshot" | "monitoringHealthSnapshot" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog"
|
|
501
|
+
modelProps: "systemSetting" | "user" | "account" | "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" | "story" | "label" | "storyLabel" | "storyActivity" | "sequenceCounter" | "storyComment" | "storyReaction" | "commentReaction" | "storyDependency" | "storyLink" | "storyAttachment" | "storyPrdLink" | "storyDocLink" | "storyFilterView" | "monitoringRequestLog" | "monitoringErrorReport" | "monitoringMetricsSnapshot" | "monitoringHealthSnapshot" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog" | "notification" | "notificationPreference"
|
|
499
502
|
txIsolationLevel: TransactionIsolationLevel
|
|
500
503
|
}
|
|
501
504
|
model: {
|
|
@@ -1091,6 +1094,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
1091
1094
|
}
|
|
1092
1095
|
}
|
|
1093
1096
|
}
|
|
1097
|
+
TeamJoinRequest: {
|
|
1098
|
+
payload: Prisma.$TeamJoinRequestPayload<ExtArgs>
|
|
1099
|
+
fields: Prisma.TeamJoinRequestFieldRefs
|
|
1100
|
+
operations: {
|
|
1101
|
+
findUnique: {
|
|
1102
|
+
args: Prisma.TeamJoinRequestFindUniqueArgs<ExtArgs>
|
|
1103
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload> | null
|
|
1104
|
+
}
|
|
1105
|
+
findUniqueOrThrow: {
|
|
1106
|
+
args: Prisma.TeamJoinRequestFindUniqueOrThrowArgs<ExtArgs>
|
|
1107
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1108
|
+
}
|
|
1109
|
+
findFirst: {
|
|
1110
|
+
args: Prisma.TeamJoinRequestFindFirstArgs<ExtArgs>
|
|
1111
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload> | null
|
|
1112
|
+
}
|
|
1113
|
+
findFirstOrThrow: {
|
|
1114
|
+
args: Prisma.TeamJoinRequestFindFirstOrThrowArgs<ExtArgs>
|
|
1115
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1116
|
+
}
|
|
1117
|
+
findMany: {
|
|
1118
|
+
args: Prisma.TeamJoinRequestFindManyArgs<ExtArgs>
|
|
1119
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>[]
|
|
1120
|
+
}
|
|
1121
|
+
create: {
|
|
1122
|
+
args: Prisma.TeamJoinRequestCreateArgs<ExtArgs>
|
|
1123
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1124
|
+
}
|
|
1125
|
+
createMany: {
|
|
1126
|
+
args: Prisma.TeamJoinRequestCreateManyArgs<ExtArgs>
|
|
1127
|
+
result: BatchPayload
|
|
1128
|
+
}
|
|
1129
|
+
createManyAndReturn: {
|
|
1130
|
+
args: Prisma.TeamJoinRequestCreateManyAndReturnArgs<ExtArgs>
|
|
1131
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>[]
|
|
1132
|
+
}
|
|
1133
|
+
delete: {
|
|
1134
|
+
args: Prisma.TeamJoinRequestDeleteArgs<ExtArgs>
|
|
1135
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1136
|
+
}
|
|
1137
|
+
update: {
|
|
1138
|
+
args: Prisma.TeamJoinRequestUpdateArgs<ExtArgs>
|
|
1139
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1140
|
+
}
|
|
1141
|
+
deleteMany: {
|
|
1142
|
+
args: Prisma.TeamJoinRequestDeleteManyArgs<ExtArgs>
|
|
1143
|
+
result: BatchPayload
|
|
1144
|
+
}
|
|
1145
|
+
updateMany: {
|
|
1146
|
+
args: Prisma.TeamJoinRequestUpdateManyArgs<ExtArgs>
|
|
1147
|
+
result: BatchPayload
|
|
1148
|
+
}
|
|
1149
|
+
updateManyAndReturn: {
|
|
1150
|
+
args: Prisma.TeamJoinRequestUpdateManyAndReturnArgs<ExtArgs>
|
|
1151
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>[]
|
|
1152
|
+
}
|
|
1153
|
+
upsert: {
|
|
1154
|
+
args: Prisma.TeamJoinRequestUpsertArgs<ExtArgs>
|
|
1155
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$TeamJoinRequestPayload>
|
|
1156
|
+
}
|
|
1157
|
+
aggregate: {
|
|
1158
|
+
args: Prisma.TeamJoinRequestAggregateArgs<ExtArgs>
|
|
1159
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateTeamJoinRequest>
|
|
1160
|
+
}
|
|
1161
|
+
groupBy: {
|
|
1162
|
+
args: Prisma.TeamJoinRequestGroupByArgs<ExtArgs>
|
|
1163
|
+
result: runtime.Types.Utils.Optional<Prisma.TeamJoinRequestGroupByOutputType>[]
|
|
1164
|
+
}
|
|
1165
|
+
count: {
|
|
1166
|
+
args: Prisma.TeamJoinRequestCountArgs<ExtArgs>
|
|
1167
|
+
result: runtime.Types.Utils.Optional<Prisma.TeamJoinRequestCountAggregateOutputType> | number
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1094
1171
|
ProjectActivity: {
|
|
1095
1172
|
payload: Prisma.$ProjectActivityPayload<ExtArgs>
|
|
1096
1173
|
fields: Prisma.ProjectActivityFieldRefs
|
|
@@ -7603,6 +7680,154 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
7603
7680
|
}
|
|
7604
7681
|
}
|
|
7605
7682
|
}
|
|
7683
|
+
Notification: {
|
|
7684
|
+
payload: Prisma.$NotificationPayload<ExtArgs>
|
|
7685
|
+
fields: Prisma.NotificationFieldRefs
|
|
7686
|
+
operations: {
|
|
7687
|
+
findUnique: {
|
|
7688
|
+
args: Prisma.NotificationFindUniqueArgs<ExtArgs>
|
|
7689
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload> | null
|
|
7690
|
+
}
|
|
7691
|
+
findUniqueOrThrow: {
|
|
7692
|
+
args: Prisma.NotificationFindUniqueOrThrowArgs<ExtArgs>
|
|
7693
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
7694
|
+
}
|
|
7695
|
+
findFirst: {
|
|
7696
|
+
args: Prisma.NotificationFindFirstArgs<ExtArgs>
|
|
7697
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload> | null
|
|
7698
|
+
}
|
|
7699
|
+
findFirstOrThrow: {
|
|
7700
|
+
args: Prisma.NotificationFindFirstOrThrowArgs<ExtArgs>
|
|
7701
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
7702
|
+
}
|
|
7703
|
+
findMany: {
|
|
7704
|
+
args: Prisma.NotificationFindManyArgs<ExtArgs>
|
|
7705
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>[]
|
|
7706
|
+
}
|
|
7707
|
+
create: {
|
|
7708
|
+
args: Prisma.NotificationCreateArgs<ExtArgs>
|
|
7709
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
7710
|
+
}
|
|
7711
|
+
createMany: {
|
|
7712
|
+
args: Prisma.NotificationCreateManyArgs<ExtArgs>
|
|
7713
|
+
result: BatchPayload
|
|
7714
|
+
}
|
|
7715
|
+
createManyAndReturn: {
|
|
7716
|
+
args: Prisma.NotificationCreateManyAndReturnArgs<ExtArgs>
|
|
7717
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>[]
|
|
7718
|
+
}
|
|
7719
|
+
delete: {
|
|
7720
|
+
args: Prisma.NotificationDeleteArgs<ExtArgs>
|
|
7721
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
7722
|
+
}
|
|
7723
|
+
update: {
|
|
7724
|
+
args: Prisma.NotificationUpdateArgs<ExtArgs>
|
|
7725
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
7726
|
+
}
|
|
7727
|
+
deleteMany: {
|
|
7728
|
+
args: Prisma.NotificationDeleteManyArgs<ExtArgs>
|
|
7729
|
+
result: BatchPayload
|
|
7730
|
+
}
|
|
7731
|
+
updateMany: {
|
|
7732
|
+
args: Prisma.NotificationUpdateManyArgs<ExtArgs>
|
|
7733
|
+
result: BatchPayload
|
|
7734
|
+
}
|
|
7735
|
+
updateManyAndReturn: {
|
|
7736
|
+
args: Prisma.NotificationUpdateManyAndReturnArgs<ExtArgs>
|
|
7737
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>[]
|
|
7738
|
+
}
|
|
7739
|
+
upsert: {
|
|
7740
|
+
args: Prisma.NotificationUpsertArgs<ExtArgs>
|
|
7741
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPayload>
|
|
7742
|
+
}
|
|
7743
|
+
aggregate: {
|
|
7744
|
+
args: Prisma.NotificationAggregateArgs<ExtArgs>
|
|
7745
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateNotification>
|
|
7746
|
+
}
|
|
7747
|
+
groupBy: {
|
|
7748
|
+
args: Prisma.NotificationGroupByArgs<ExtArgs>
|
|
7749
|
+
result: runtime.Types.Utils.Optional<Prisma.NotificationGroupByOutputType>[]
|
|
7750
|
+
}
|
|
7751
|
+
count: {
|
|
7752
|
+
args: Prisma.NotificationCountArgs<ExtArgs>
|
|
7753
|
+
result: runtime.Types.Utils.Optional<Prisma.NotificationCountAggregateOutputType> | number
|
|
7754
|
+
}
|
|
7755
|
+
}
|
|
7756
|
+
}
|
|
7757
|
+
NotificationPreference: {
|
|
7758
|
+
payload: Prisma.$NotificationPreferencePayload<ExtArgs>
|
|
7759
|
+
fields: Prisma.NotificationPreferenceFieldRefs
|
|
7760
|
+
operations: {
|
|
7761
|
+
findUnique: {
|
|
7762
|
+
args: Prisma.NotificationPreferenceFindUniqueArgs<ExtArgs>
|
|
7763
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload> | null
|
|
7764
|
+
}
|
|
7765
|
+
findUniqueOrThrow: {
|
|
7766
|
+
args: Prisma.NotificationPreferenceFindUniqueOrThrowArgs<ExtArgs>
|
|
7767
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
7768
|
+
}
|
|
7769
|
+
findFirst: {
|
|
7770
|
+
args: Prisma.NotificationPreferenceFindFirstArgs<ExtArgs>
|
|
7771
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload> | null
|
|
7772
|
+
}
|
|
7773
|
+
findFirstOrThrow: {
|
|
7774
|
+
args: Prisma.NotificationPreferenceFindFirstOrThrowArgs<ExtArgs>
|
|
7775
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
7776
|
+
}
|
|
7777
|
+
findMany: {
|
|
7778
|
+
args: Prisma.NotificationPreferenceFindManyArgs<ExtArgs>
|
|
7779
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>[]
|
|
7780
|
+
}
|
|
7781
|
+
create: {
|
|
7782
|
+
args: Prisma.NotificationPreferenceCreateArgs<ExtArgs>
|
|
7783
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
7784
|
+
}
|
|
7785
|
+
createMany: {
|
|
7786
|
+
args: Prisma.NotificationPreferenceCreateManyArgs<ExtArgs>
|
|
7787
|
+
result: BatchPayload
|
|
7788
|
+
}
|
|
7789
|
+
createManyAndReturn: {
|
|
7790
|
+
args: Prisma.NotificationPreferenceCreateManyAndReturnArgs<ExtArgs>
|
|
7791
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>[]
|
|
7792
|
+
}
|
|
7793
|
+
delete: {
|
|
7794
|
+
args: Prisma.NotificationPreferenceDeleteArgs<ExtArgs>
|
|
7795
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
7796
|
+
}
|
|
7797
|
+
update: {
|
|
7798
|
+
args: Prisma.NotificationPreferenceUpdateArgs<ExtArgs>
|
|
7799
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
7800
|
+
}
|
|
7801
|
+
deleteMany: {
|
|
7802
|
+
args: Prisma.NotificationPreferenceDeleteManyArgs<ExtArgs>
|
|
7803
|
+
result: BatchPayload
|
|
7804
|
+
}
|
|
7805
|
+
updateMany: {
|
|
7806
|
+
args: Prisma.NotificationPreferenceUpdateManyArgs<ExtArgs>
|
|
7807
|
+
result: BatchPayload
|
|
7808
|
+
}
|
|
7809
|
+
updateManyAndReturn: {
|
|
7810
|
+
args: Prisma.NotificationPreferenceUpdateManyAndReturnArgs<ExtArgs>
|
|
7811
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>[]
|
|
7812
|
+
}
|
|
7813
|
+
upsert: {
|
|
7814
|
+
args: Prisma.NotificationPreferenceUpsertArgs<ExtArgs>
|
|
7815
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$NotificationPreferencePayload>
|
|
7816
|
+
}
|
|
7817
|
+
aggregate: {
|
|
7818
|
+
args: Prisma.NotificationPreferenceAggregateArgs<ExtArgs>
|
|
7819
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateNotificationPreference>
|
|
7820
|
+
}
|
|
7821
|
+
groupBy: {
|
|
7822
|
+
args: Prisma.NotificationPreferenceGroupByArgs<ExtArgs>
|
|
7823
|
+
result: runtime.Types.Utils.Optional<Prisma.NotificationPreferenceGroupByOutputType>[]
|
|
7824
|
+
}
|
|
7825
|
+
count: {
|
|
7826
|
+
args: Prisma.NotificationPreferenceCountArgs<ExtArgs>
|
|
7827
|
+
result: runtime.Types.Utils.Optional<Prisma.NotificationPreferenceCountAggregateOutputType> | number
|
|
7828
|
+
}
|
|
7829
|
+
}
|
|
7830
|
+
}
|
|
7606
7831
|
}
|
|
7607
7832
|
} & {
|
|
7608
7833
|
other: {
|
|
@@ -7764,12 +7989,29 @@ export const TeamInvitationScalarFieldEnum = {
|
|
|
7764
7989
|
status: 'status',
|
|
7765
7990
|
expiresAt: 'expiresAt',
|
|
7766
7991
|
createdAt: 'createdAt',
|
|
7767
|
-
acceptedBy: 'acceptedBy'
|
|
7992
|
+
acceptedBy: 'acceptedBy',
|
|
7993
|
+
applicantEmail: 'applicantEmail',
|
|
7994
|
+
message: 'message'
|
|
7768
7995
|
} as const
|
|
7769
7996
|
|
|
7770
7997
|
export type TeamInvitationScalarFieldEnum = (typeof TeamInvitationScalarFieldEnum)[keyof typeof TeamInvitationScalarFieldEnum]
|
|
7771
7998
|
|
|
7772
7999
|
|
|
8000
|
+
export const TeamJoinRequestScalarFieldEnum = {
|
|
8001
|
+
id: 'id',
|
|
8002
|
+
invitationId: 'invitationId',
|
|
8003
|
+
ownerId: 'ownerId',
|
|
8004
|
+
userId: 'userId',
|
|
8005
|
+
email: 'email',
|
|
8006
|
+
status: 'status',
|
|
8007
|
+
seatType: 'seatType',
|
|
8008
|
+
createdAt: 'createdAt',
|
|
8009
|
+
processedAt: 'processedAt'
|
|
8010
|
+
} as const
|
|
8011
|
+
|
|
8012
|
+
export type TeamJoinRequestScalarFieldEnum = (typeof TeamJoinRequestScalarFieldEnum)[keyof typeof TeamJoinRequestScalarFieldEnum]
|
|
8013
|
+
|
|
8014
|
+
|
|
7773
8015
|
export const ProjectActivityScalarFieldEnum = {
|
|
7774
8016
|
id: 'id',
|
|
7775
8017
|
projectId: 'projectId',
|
|
@@ -9140,6 +9382,32 @@ export const DeveloperLogScalarFieldEnum = {
|
|
|
9140
9382
|
export type DeveloperLogScalarFieldEnum = (typeof DeveloperLogScalarFieldEnum)[keyof typeof DeveloperLogScalarFieldEnum]
|
|
9141
9383
|
|
|
9142
9384
|
|
|
9385
|
+
export const NotificationScalarFieldEnum = {
|
|
9386
|
+
id: 'id',
|
|
9387
|
+
userId: 'userId',
|
|
9388
|
+
category: 'category',
|
|
9389
|
+
type: 'type',
|
|
9390
|
+
title: 'title',
|
|
9391
|
+
body: 'body',
|
|
9392
|
+
link: 'link',
|
|
9393
|
+
readAt: 'readAt',
|
|
9394
|
+
createdAt: 'createdAt'
|
|
9395
|
+
} as const
|
|
9396
|
+
|
|
9397
|
+
export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
|
|
9398
|
+
|
|
9399
|
+
|
|
9400
|
+
export const NotificationPreferenceScalarFieldEnum = {
|
|
9401
|
+
userId: 'userId',
|
|
9402
|
+
categories: 'categories',
|
|
9403
|
+
dndEnabled: 'dndEnabled',
|
|
9404
|
+
dndStart: 'dndStart',
|
|
9405
|
+
dndEnd: 'dndEnd'
|
|
9406
|
+
} as const
|
|
9407
|
+
|
|
9408
|
+
export type NotificationPreferenceScalarFieldEnum = (typeof NotificationPreferenceScalarFieldEnum)[keyof typeof NotificationPreferenceScalarFieldEnum]
|
|
9409
|
+
|
|
9410
|
+
|
|
9143
9411
|
export const SortOrder = {
|
|
9144
9412
|
asc: 'asc',
|
|
9145
9413
|
desc: 'desc'
|
|
@@ -9542,6 +9810,7 @@ export type GlobalOmitConfig = {
|
|
|
9542
9810
|
workspace?: Prisma.WorkspaceOmit
|
|
9543
9811
|
teamMembership?: Prisma.TeamMembershipOmit
|
|
9544
9812
|
teamInvitation?: Prisma.TeamInvitationOmit
|
|
9813
|
+
teamJoinRequest?: Prisma.TeamJoinRequestOmit
|
|
9545
9814
|
projectActivity?: Prisma.ProjectActivityOmit
|
|
9546
9815
|
chatThread?: Prisma.ChatThreadOmit
|
|
9547
9816
|
chatMessage?: Prisma.ChatMessageOmit
|
|
@@ -9630,6 +9899,8 @@ export type GlobalOmitConfig = {
|
|
|
9630
9899
|
userAgent?: Prisma.UserAgentOmit
|
|
9631
9900
|
userSkill?: Prisma.UserSkillOmit
|
|
9632
9901
|
developerLog?: Prisma.DeveloperLogOmit
|
|
9902
|
+
notification?: Prisma.NotificationOmit
|
|
9903
|
+
notificationPreference?: Prisma.NotificationPreferenceOmit
|
|
9633
9904
|
}
|
|
9634
9905
|
|
|
9635
9906
|
/* Types for Logging */
|
|
@@ -59,6 +59,7 @@ export const ModelName = {
|
|
|
59
59
|
Workspace: 'Workspace',
|
|
60
60
|
TeamMembership: 'TeamMembership',
|
|
61
61
|
TeamInvitation: 'TeamInvitation',
|
|
62
|
+
TeamJoinRequest: 'TeamJoinRequest',
|
|
62
63
|
ProjectActivity: 'ProjectActivity',
|
|
63
64
|
ChatThread: 'ChatThread',
|
|
64
65
|
ChatMessage: 'ChatMessage',
|
|
@@ -146,7 +147,9 @@ export const ModelName = {
|
|
|
146
147
|
ComplianceExport: 'ComplianceExport',
|
|
147
148
|
UserAgent: 'UserAgent',
|
|
148
149
|
UserSkill: 'UserSkill',
|
|
149
|
-
DeveloperLog: 'DeveloperLog'
|
|
150
|
+
DeveloperLog: 'DeveloperLog',
|
|
151
|
+
Notification: 'Notification',
|
|
152
|
+
NotificationPreference: 'NotificationPreference'
|
|
150
153
|
} as const
|
|
151
154
|
|
|
152
155
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -287,12 +290,29 @@ export const TeamInvitationScalarFieldEnum = {
|
|
|
287
290
|
status: 'status',
|
|
288
291
|
expiresAt: 'expiresAt',
|
|
289
292
|
createdAt: 'createdAt',
|
|
290
|
-
acceptedBy: 'acceptedBy'
|
|
293
|
+
acceptedBy: 'acceptedBy',
|
|
294
|
+
applicantEmail: 'applicantEmail',
|
|
295
|
+
message: 'message'
|
|
291
296
|
} as const
|
|
292
297
|
|
|
293
298
|
export type TeamInvitationScalarFieldEnum = (typeof TeamInvitationScalarFieldEnum)[keyof typeof TeamInvitationScalarFieldEnum]
|
|
294
299
|
|
|
295
300
|
|
|
301
|
+
export const TeamJoinRequestScalarFieldEnum = {
|
|
302
|
+
id: 'id',
|
|
303
|
+
invitationId: 'invitationId',
|
|
304
|
+
ownerId: 'ownerId',
|
|
305
|
+
userId: 'userId',
|
|
306
|
+
email: 'email',
|
|
307
|
+
status: 'status',
|
|
308
|
+
seatType: 'seatType',
|
|
309
|
+
createdAt: 'createdAt',
|
|
310
|
+
processedAt: 'processedAt'
|
|
311
|
+
} as const
|
|
312
|
+
|
|
313
|
+
export type TeamJoinRequestScalarFieldEnum = (typeof TeamJoinRequestScalarFieldEnum)[keyof typeof TeamJoinRequestScalarFieldEnum]
|
|
314
|
+
|
|
315
|
+
|
|
296
316
|
export const ProjectActivityScalarFieldEnum = {
|
|
297
317
|
id: 'id',
|
|
298
318
|
projectId: 'projectId',
|
|
@@ -1663,6 +1683,32 @@ export const DeveloperLogScalarFieldEnum = {
|
|
|
1663
1683
|
export type DeveloperLogScalarFieldEnum = (typeof DeveloperLogScalarFieldEnum)[keyof typeof DeveloperLogScalarFieldEnum]
|
|
1664
1684
|
|
|
1665
1685
|
|
|
1686
|
+
export const NotificationScalarFieldEnum = {
|
|
1687
|
+
id: 'id',
|
|
1688
|
+
userId: 'userId',
|
|
1689
|
+
category: 'category',
|
|
1690
|
+
type: 'type',
|
|
1691
|
+
title: 'title',
|
|
1692
|
+
body: 'body',
|
|
1693
|
+
link: 'link',
|
|
1694
|
+
readAt: 'readAt',
|
|
1695
|
+
createdAt: 'createdAt'
|
|
1696
|
+
} as const
|
|
1697
|
+
|
|
1698
|
+
export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
export const NotificationPreferenceScalarFieldEnum = {
|
|
1702
|
+
userId: 'userId',
|
|
1703
|
+
categories: 'categories',
|
|
1704
|
+
dndEnabled: 'dndEnabled',
|
|
1705
|
+
dndStart: 'dndStart',
|
|
1706
|
+
dndEnd: 'dndEnd'
|
|
1707
|
+
} as const
|
|
1708
|
+
|
|
1709
|
+
export type NotificationPreferenceScalarFieldEnum = (typeof NotificationPreferenceScalarFieldEnum)[keyof typeof NotificationPreferenceScalarFieldEnum]
|
|
1710
|
+
|
|
1711
|
+
|
|
1666
1712
|
export const SortOrder = {
|
|
1667
1713
|
asc: 'asc',
|
|
1668
1714
|
desc: 'desc'
|