@allbluecn/database 0.6.0 → 0.8.0
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 +25 -0
- package/generated/client.ts +25 -0
- package/generated/internal/class.ts +54 -4
- package/generated/internal/prismaNamespace.ts +453 -2
- package/generated/internal/prismaNamespaceBrowser.ts +77 -1
- package/generated/models/EmailLog.ts +1345 -0
- package/generated/models/EmailPreference.ts +1257 -0
- package/generated/models/EmailSubscriber.ts +1233 -0
- package/generated/models/EmailVerificationToken.ts +1380 -0
- package/generated/models/InvitationCode.ts +65 -1
- package/generated/models/NotificationPreference.ts +27 -1
- package/generated/models/OAuthProviderConfig.ts +1227 -0
- package/generated/models/User.ts +1435 -157
- package/generated/models.ts +5 -0
- package/generated-sqlite/browser.ts +30 -0
- package/generated-sqlite/client.ts +30 -0
- package/generated-sqlite/internal/class.ts +64 -4
- package/generated-sqlite/internal/prismaNamespace.ts +541 -3
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +90 -2
- package/generated-sqlite/models/EmailLog.ts +1343 -0
- package/generated-sqlite/models/EmailPreference.ts +1255 -0
- package/generated-sqlite/models/EmailSubscriber.ts +1231 -0
- package/generated-sqlite/models/EmailVerificationToken.ts +1377 -0
- package/generated-sqlite/models/InvitationCode.ts +65 -1
- package/generated-sqlite/models/NotificationPreference.ts +1313 -0
- package/generated-sqlite/models/OAuthProviderConfig.ts +1225 -0
- package/generated-sqlite/models/User.ts +1867 -293
- package/generated-sqlite/models.ts +6 -0
- package/migrations/20260911120000_add_pgvector_tables/migration.sql +28 -0
- package/migrations/20260911171433_email_auth_invitation/migration.sql +80 -0
- package/migrations/20260912032616_email_p4_p8/migration.sql +42 -0
- package/package.json +2 -2
- package/schema.prisma +93 -12
- package/schema.sqlite.prisma +93 -4
|
@@ -404,6 +404,11 @@ export const ModelName = {
|
|
|
404
404
|
InvitationCode: 'InvitationCode',
|
|
405
405
|
InvitationUse: 'InvitationUse',
|
|
406
406
|
PasswordResetToken: 'PasswordResetToken',
|
|
407
|
+
EmailVerificationToken: 'EmailVerificationToken',
|
|
408
|
+
EmailLog: 'EmailLog',
|
|
409
|
+
EmailPreference: 'EmailPreference',
|
|
410
|
+
OAuthProviderConfig: 'OAuthProviderConfig',
|
|
411
|
+
EmailSubscriber: 'EmailSubscriber',
|
|
407
412
|
KnowledgeBase: 'KnowledgeBase',
|
|
408
413
|
KnowledgeDocument: 'KnowledgeDocument',
|
|
409
414
|
PRD: 'PRD',
|
|
@@ -505,7 +510,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
505
510
|
omit: GlobalOmitOptions
|
|
506
511
|
}
|
|
507
512
|
meta: {
|
|
508
|
-
modelProps: "systemSetting" | "user" | "account" | "project" | "projectMember" | "workspace" | "workspaceMember" | "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" | "projectKnowledgeBase" | "workspaceKnowledgeBase" | "workspaceQuickDoc" | "storyLink" | "storyAttachment" | "storyPrdLink" | "storyDocLink" | "storyExternalLink" | "storyFilterView" | "monitoringRequestLog" | "monitoringErrorReport" | "monitoringMetricsSnapshot" | "monitoringHealthSnapshot" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog" | "notification" | "notificationPreference" | "iteration" | "iterationAutoSchedule"
|
|
513
|
+
modelProps: "systemSetting" | "user" | "account" | "project" | "projectMember" | "workspace" | "workspaceMember" | "teamMembership" | "teamInvitation" | "teamJoinRequest" | "projectActivity" | "chatThread" | "chatMessage" | "chatRun" | "chatInterrupt" | "generationRun" | "loginLog" | "invitationCode" | "invitationUse" | "passwordResetToken" | "emailVerificationToken" | "emailLog" | "emailPreference" | "oAuthProviderConfig" | "emailSubscriber" | "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" | "projectKnowledgeBase" | "workspaceKnowledgeBase" | "workspaceQuickDoc" | "storyLink" | "storyAttachment" | "storyPrdLink" | "storyDocLink" | "storyExternalLink" | "storyFilterView" | "monitoringRequestLog" | "monitoringErrorReport" | "monitoringMetricsSnapshot" | "monitoringHealthSnapshot" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog" | "notification" | "notificationPreference" | "iteration" | "iterationAutoSchedule"
|
|
509
514
|
txIsolationLevel: TransactionIsolationLevel
|
|
510
515
|
}
|
|
511
516
|
model: {
|
|
@@ -1989,6 +1994,376 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
1989
1994
|
}
|
|
1990
1995
|
}
|
|
1991
1996
|
}
|
|
1997
|
+
EmailVerificationToken: {
|
|
1998
|
+
payload: Prisma.$EmailVerificationTokenPayload<ExtArgs>
|
|
1999
|
+
fields: Prisma.EmailVerificationTokenFieldRefs
|
|
2000
|
+
operations: {
|
|
2001
|
+
findUnique: {
|
|
2002
|
+
args: Prisma.EmailVerificationTokenFindUniqueArgs<ExtArgs>
|
|
2003
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailVerificationTokenPayload> | null
|
|
2004
|
+
}
|
|
2005
|
+
findUniqueOrThrow: {
|
|
2006
|
+
args: Prisma.EmailVerificationTokenFindUniqueOrThrowArgs<ExtArgs>
|
|
2007
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailVerificationTokenPayload>
|
|
2008
|
+
}
|
|
2009
|
+
findFirst: {
|
|
2010
|
+
args: Prisma.EmailVerificationTokenFindFirstArgs<ExtArgs>
|
|
2011
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailVerificationTokenPayload> | null
|
|
2012
|
+
}
|
|
2013
|
+
findFirstOrThrow: {
|
|
2014
|
+
args: Prisma.EmailVerificationTokenFindFirstOrThrowArgs<ExtArgs>
|
|
2015
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailVerificationTokenPayload>
|
|
2016
|
+
}
|
|
2017
|
+
findMany: {
|
|
2018
|
+
args: Prisma.EmailVerificationTokenFindManyArgs<ExtArgs>
|
|
2019
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailVerificationTokenPayload>[]
|
|
2020
|
+
}
|
|
2021
|
+
create: {
|
|
2022
|
+
args: Prisma.EmailVerificationTokenCreateArgs<ExtArgs>
|
|
2023
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailVerificationTokenPayload>
|
|
2024
|
+
}
|
|
2025
|
+
createMany: {
|
|
2026
|
+
args: Prisma.EmailVerificationTokenCreateManyArgs<ExtArgs>
|
|
2027
|
+
result: BatchPayload
|
|
2028
|
+
}
|
|
2029
|
+
createManyAndReturn: {
|
|
2030
|
+
args: Prisma.EmailVerificationTokenCreateManyAndReturnArgs<ExtArgs>
|
|
2031
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailVerificationTokenPayload>[]
|
|
2032
|
+
}
|
|
2033
|
+
delete: {
|
|
2034
|
+
args: Prisma.EmailVerificationTokenDeleteArgs<ExtArgs>
|
|
2035
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailVerificationTokenPayload>
|
|
2036
|
+
}
|
|
2037
|
+
update: {
|
|
2038
|
+
args: Prisma.EmailVerificationTokenUpdateArgs<ExtArgs>
|
|
2039
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailVerificationTokenPayload>
|
|
2040
|
+
}
|
|
2041
|
+
deleteMany: {
|
|
2042
|
+
args: Prisma.EmailVerificationTokenDeleteManyArgs<ExtArgs>
|
|
2043
|
+
result: BatchPayload
|
|
2044
|
+
}
|
|
2045
|
+
updateMany: {
|
|
2046
|
+
args: Prisma.EmailVerificationTokenUpdateManyArgs<ExtArgs>
|
|
2047
|
+
result: BatchPayload
|
|
2048
|
+
}
|
|
2049
|
+
updateManyAndReturn: {
|
|
2050
|
+
args: Prisma.EmailVerificationTokenUpdateManyAndReturnArgs<ExtArgs>
|
|
2051
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailVerificationTokenPayload>[]
|
|
2052
|
+
}
|
|
2053
|
+
upsert: {
|
|
2054
|
+
args: Prisma.EmailVerificationTokenUpsertArgs<ExtArgs>
|
|
2055
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailVerificationTokenPayload>
|
|
2056
|
+
}
|
|
2057
|
+
aggregate: {
|
|
2058
|
+
args: Prisma.EmailVerificationTokenAggregateArgs<ExtArgs>
|
|
2059
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateEmailVerificationToken>
|
|
2060
|
+
}
|
|
2061
|
+
groupBy: {
|
|
2062
|
+
args: Prisma.EmailVerificationTokenGroupByArgs<ExtArgs>
|
|
2063
|
+
result: runtime.Types.Utils.Optional<Prisma.EmailVerificationTokenGroupByOutputType>[]
|
|
2064
|
+
}
|
|
2065
|
+
count: {
|
|
2066
|
+
args: Prisma.EmailVerificationTokenCountArgs<ExtArgs>
|
|
2067
|
+
result: runtime.Types.Utils.Optional<Prisma.EmailVerificationTokenCountAggregateOutputType> | number
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
EmailLog: {
|
|
2072
|
+
payload: Prisma.$EmailLogPayload<ExtArgs>
|
|
2073
|
+
fields: Prisma.EmailLogFieldRefs
|
|
2074
|
+
operations: {
|
|
2075
|
+
findUnique: {
|
|
2076
|
+
args: Prisma.EmailLogFindUniqueArgs<ExtArgs>
|
|
2077
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailLogPayload> | null
|
|
2078
|
+
}
|
|
2079
|
+
findUniqueOrThrow: {
|
|
2080
|
+
args: Prisma.EmailLogFindUniqueOrThrowArgs<ExtArgs>
|
|
2081
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailLogPayload>
|
|
2082
|
+
}
|
|
2083
|
+
findFirst: {
|
|
2084
|
+
args: Prisma.EmailLogFindFirstArgs<ExtArgs>
|
|
2085
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailLogPayload> | null
|
|
2086
|
+
}
|
|
2087
|
+
findFirstOrThrow: {
|
|
2088
|
+
args: Prisma.EmailLogFindFirstOrThrowArgs<ExtArgs>
|
|
2089
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailLogPayload>
|
|
2090
|
+
}
|
|
2091
|
+
findMany: {
|
|
2092
|
+
args: Prisma.EmailLogFindManyArgs<ExtArgs>
|
|
2093
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailLogPayload>[]
|
|
2094
|
+
}
|
|
2095
|
+
create: {
|
|
2096
|
+
args: Prisma.EmailLogCreateArgs<ExtArgs>
|
|
2097
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailLogPayload>
|
|
2098
|
+
}
|
|
2099
|
+
createMany: {
|
|
2100
|
+
args: Prisma.EmailLogCreateManyArgs<ExtArgs>
|
|
2101
|
+
result: BatchPayload
|
|
2102
|
+
}
|
|
2103
|
+
createManyAndReturn: {
|
|
2104
|
+
args: Prisma.EmailLogCreateManyAndReturnArgs<ExtArgs>
|
|
2105
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailLogPayload>[]
|
|
2106
|
+
}
|
|
2107
|
+
delete: {
|
|
2108
|
+
args: Prisma.EmailLogDeleteArgs<ExtArgs>
|
|
2109
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailLogPayload>
|
|
2110
|
+
}
|
|
2111
|
+
update: {
|
|
2112
|
+
args: Prisma.EmailLogUpdateArgs<ExtArgs>
|
|
2113
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailLogPayload>
|
|
2114
|
+
}
|
|
2115
|
+
deleteMany: {
|
|
2116
|
+
args: Prisma.EmailLogDeleteManyArgs<ExtArgs>
|
|
2117
|
+
result: BatchPayload
|
|
2118
|
+
}
|
|
2119
|
+
updateMany: {
|
|
2120
|
+
args: Prisma.EmailLogUpdateManyArgs<ExtArgs>
|
|
2121
|
+
result: BatchPayload
|
|
2122
|
+
}
|
|
2123
|
+
updateManyAndReturn: {
|
|
2124
|
+
args: Prisma.EmailLogUpdateManyAndReturnArgs<ExtArgs>
|
|
2125
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailLogPayload>[]
|
|
2126
|
+
}
|
|
2127
|
+
upsert: {
|
|
2128
|
+
args: Prisma.EmailLogUpsertArgs<ExtArgs>
|
|
2129
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailLogPayload>
|
|
2130
|
+
}
|
|
2131
|
+
aggregate: {
|
|
2132
|
+
args: Prisma.EmailLogAggregateArgs<ExtArgs>
|
|
2133
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateEmailLog>
|
|
2134
|
+
}
|
|
2135
|
+
groupBy: {
|
|
2136
|
+
args: Prisma.EmailLogGroupByArgs<ExtArgs>
|
|
2137
|
+
result: runtime.Types.Utils.Optional<Prisma.EmailLogGroupByOutputType>[]
|
|
2138
|
+
}
|
|
2139
|
+
count: {
|
|
2140
|
+
args: Prisma.EmailLogCountArgs<ExtArgs>
|
|
2141
|
+
result: runtime.Types.Utils.Optional<Prisma.EmailLogCountAggregateOutputType> | number
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
EmailPreference: {
|
|
2146
|
+
payload: Prisma.$EmailPreferencePayload<ExtArgs>
|
|
2147
|
+
fields: Prisma.EmailPreferenceFieldRefs
|
|
2148
|
+
operations: {
|
|
2149
|
+
findUnique: {
|
|
2150
|
+
args: Prisma.EmailPreferenceFindUniqueArgs<ExtArgs>
|
|
2151
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailPreferencePayload> | null
|
|
2152
|
+
}
|
|
2153
|
+
findUniqueOrThrow: {
|
|
2154
|
+
args: Prisma.EmailPreferenceFindUniqueOrThrowArgs<ExtArgs>
|
|
2155
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailPreferencePayload>
|
|
2156
|
+
}
|
|
2157
|
+
findFirst: {
|
|
2158
|
+
args: Prisma.EmailPreferenceFindFirstArgs<ExtArgs>
|
|
2159
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailPreferencePayload> | null
|
|
2160
|
+
}
|
|
2161
|
+
findFirstOrThrow: {
|
|
2162
|
+
args: Prisma.EmailPreferenceFindFirstOrThrowArgs<ExtArgs>
|
|
2163
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailPreferencePayload>
|
|
2164
|
+
}
|
|
2165
|
+
findMany: {
|
|
2166
|
+
args: Prisma.EmailPreferenceFindManyArgs<ExtArgs>
|
|
2167
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailPreferencePayload>[]
|
|
2168
|
+
}
|
|
2169
|
+
create: {
|
|
2170
|
+
args: Prisma.EmailPreferenceCreateArgs<ExtArgs>
|
|
2171
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailPreferencePayload>
|
|
2172
|
+
}
|
|
2173
|
+
createMany: {
|
|
2174
|
+
args: Prisma.EmailPreferenceCreateManyArgs<ExtArgs>
|
|
2175
|
+
result: BatchPayload
|
|
2176
|
+
}
|
|
2177
|
+
createManyAndReturn: {
|
|
2178
|
+
args: Prisma.EmailPreferenceCreateManyAndReturnArgs<ExtArgs>
|
|
2179
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailPreferencePayload>[]
|
|
2180
|
+
}
|
|
2181
|
+
delete: {
|
|
2182
|
+
args: Prisma.EmailPreferenceDeleteArgs<ExtArgs>
|
|
2183
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailPreferencePayload>
|
|
2184
|
+
}
|
|
2185
|
+
update: {
|
|
2186
|
+
args: Prisma.EmailPreferenceUpdateArgs<ExtArgs>
|
|
2187
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailPreferencePayload>
|
|
2188
|
+
}
|
|
2189
|
+
deleteMany: {
|
|
2190
|
+
args: Prisma.EmailPreferenceDeleteManyArgs<ExtArgs>
|
|
2191
|
+
result: BatchPayload
|
|
2192
|
+
}
|
|
2193
|
+
updateMany: {
|
|
2194
|
+
args: Prisma.EmailPreferenceUpdateManyArgs<ExtArgs>
|
|
2195
|
+
result: BatchPayload
|
|
2196
|
+
}
|
|
2197
|
+
updateManyAndReturn: {
|
|
2198
|
+
args: Prisma.EmailPreferenceUpdateManyAndReturnArgs<ExtArgs>
|
|
2199
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailPreferencePayload>[]
|
|
2200
|
+
}
|
|
2201
|
+
upsert: {
|
|
2202
|
+
args: Prisma.EmailPreferenceUpsertArgs<ExtArgs>
|
|
2203
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailPreferencePayload>
|
|
2204
|
+
}
|
|
2205
|
+
aggregate: {
|
|
2206
|
+
args: Prisma.EmailPreferenceAggregateArgs<ExtArgs>
|
|
2207
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateEmailPreference>
|
|
2208
|
+
}
|
|
2209
|
+
groupBy: {
|
|
2210
|
+
args: Prisma.EmailPreferenceGroupByArgs<ExtArgs>
|
|
2211
|
+
result: runtime.Types.Utils.Optional<Prisma.EmailPreferenceGroupByOutputType>[]
|
|
2212
|
+
}
|
|
2213
|
+
count: {
|
|
2214
|
+
args: Prisma.EmailPreferenceCountArgs<ExtArgs>
|
|
2215
|
+
result: runtime.Types.Utils.Optional<Prisma.EmailPreferenceCountAggregateOutputType> | number
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
OAuthProviderConfig: {
|
|
2220
|
+
payload: Prisma.$OAuthProviderConfigPayload<ExtArgs>
|
|
2221
|
+
fields: Prisma.OAuthProviderConfigFieldRefs
|
|
2222
|
+
operations: {
|
|
2223
|
+
findUnique: {
|
|
2224
|
+
args: Prisma.OAuthProviderConfigFindUniqueArgs<ExtArgs>
|
|
2225
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OAuthProviderConfigPayload> | null
|
|
2226
|
+
}
|
|
2227
|
+
findUniqueOrThrow: {
|
|
2228
|
+
args: Prisma.OAuthProviderConfigFindUniqueOrThrowArgs<ExtArgs>
|
|
2229
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OAuthProviderConfigPayload>
|
|
2230
|
+
}
|
|
2231
|
+
findFirst: {
|
|
2232
|
+
args: Prisma.OAuthProviderConfigFindFirstArgs<ExtArgs>
|
|
2233
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OAuthProviderConfigPayload> | null
|
|
2234
|
+
}
|
|
2235
|
+
findFirstOrThrow: {
|
|
2236
|
+
args: Prisma.OAuthProviderConfigFindFirstOrThrowArgs<ExtArgs>
|
|
2237
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OAuthProviderConfigPayload>
|
|
2238
|
+
}
|
|
2239
|
+
findMany: {
|
|
2240
|
+
args: Prisma.OAuthProviderConfigFindManyArgs<ExtArgs>
|
|
2241
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OAuthProviderConfigPayload>[]
|
|
2242
|
+
}
|
|
2243
|
+
create: {
|
|
2244
|
+
args: Prisma.OAuthProviderConfigCreateArgs<ExtArgs>
|
|
2245
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OAuthProviderConfigPayload>
|
|
2246
|
+
}
|
|
2247
|
+
createMany: {
|
|
2248
|
+
args: Prisma.OAuthProviderConfigCreateManyArgs<ExtArgs>
|
|
2249
|
+
result: BatchPayload
|
|
2250
|
+
}
|
|
2251
|
+
createManyAndReturn: {
|
|
2252
|
+
args: Prisma.OAuthProviderConfigCreateManyAndReturnArgs<ExtArgs>
|
|
2253
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OAuthProviderConfigPayload>[]
|
|
2254
|
+
}
|
|
2255
|
+
delete: {
|
|
2256
|
+
args: Prisma.OAuthProviderConfigDeleteArgs<ExtArgs>
|
|
2257
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OAuthProviderConfigPayload>
|
|
2258
|
+
}
|
|
2259
|
+
update: {
|
|
2260
|
+
args: Prisma.OAuthProviderConfigUpdateArgs<ExtArgs>
|
|
2261
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OAuthProviderConfigPayload>
|
|
2262
|
+
}
|
|
2263
|
+
deleteMany: {
|
|
2264
|
+
args: Prisma.OAuthProviderConfigDeleteManyArgs<ExtArgs>
|
|
2265
|
+
result: BatchPayload
|
|
2266
|
+
}
|
|
2267
|
+
updateMany: {
|
|
2268
|
+
args: Prisma.OAuthProviderConfigUpdateManyArgs<ExtArgs>
|
|
2269
|
+
result: BatchPayload
|
|
2270
|
+
}
|
|
2271
|
+
updateManyAndReturn: {
|
|
2272
|
+
args: Prisma.OAuthProviderConfigUpdateManyAndReturnArgs<ExtArgs>
|
|
2273
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OAuthProviderConfigPayload>[]
|
|
2274
|
+
}
|
|
2275
|
+
upsert: {
|
|
2276
|
+
args: Prisma.OAuthProviderConfigUpsertArgs<ExtArgs>
|
|
2277
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$OAuthProviderConfigPayload>
|
|
2278
|
+
}
|
|
2279
|
+
aggregate: {
|
|
2280
|
+
args: Prisma.OAuthProviderConfigAggregateArgs<ExtArgs>
|
|
2281
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateOAuthProviderConfig>
|
|
2282
|
+
}
|
|
2283
|
+
groupBy: {
|
|
2284
|
+
args: Prisma.OAuthProviderConfigGroupByArgs<ExtArgs>
|
|
2285
|
+
result: runtime.Types.Utils.Optional<Prisma.OAuthProviderConfigGroupByOutputType>[]
|
|
2286
|
+
}
|
|
2287
|
+
count: {
|
|
2288
|
+
args: Prisma.OAuthProviderConfigCountArgs<ExtArgs>
|
|
2289
|
+
result: runtime.Types.Utils.Optional<Prisma.OAuthProviderConfigCountAggregateOutputType> | number
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
EmailSubscriber: {
|
|
2294
|
+
payload: Prisma.$EmailSubscriberPayload<ExtArgs>
|
|
2295
|
+
fields: Prisma.EmailSubscriberFieldRefs
|
|
2296
|
+
operations: {
|
|
2297
|
+
findUnique: {
|
|
2298
|
+
args: Prisma.EmailSubscriberFindUniqueArgs<ExtArgs>
|
|
2299
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailSubscriberPayload> | null
|
|
2300
|
+
}
|
|
2301
|
+
findUniqueOrThrow: {
|
|
2302
|
+
args: Prisma.EmailSubscriberFindUniqueOrThrowArgs<ExtArgs>
|
|
2303
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailSubscriberPayload>
|
|
2304
|
+
}
|
|
2305
|
+
findFirst: {
|
|
2306
|
+
args: Prisma.EmailSubscriberFindFirstArgs<ExtArgs>
|
|
2307
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailSubscriberPayload> | null
|
|
2308
|
+
}
|
|
2309
|
+
findFirstOrThrow: {
|
|
2310
|
+
args: Prisma.EmailSubscriberFindFirstOrThrowArgs<ExtArgs>
|
|
2311
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailSubscriberPayload>
|
|
2312
|
+
}
|
|
2313
|
+
findMany: {
|
|
2314
|
+
args: Prisma.EmailSubscriberFindManyArgs<ExtArgs>
|
|
2315
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailSubscriberPayload>[]
|
|
2316
|
+
}
|
|
2317
|
+
create: {
|
|
2318
|
+
args: Prisma.EmailSubscriberCreateArgs<ExtArgs>
|
|
2319
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailSubscriberPayload>
|
|
2320
|
+
}
|
|
2321
|
+
createMany: {
|
|
2322
|
+
args: Prisma.EmailSubscriberCreateManyArgs<ExtArgs>
|
|
2323
|
+
result: BatchPayload
|
|
2324
|
+
}
|
|
2325
|
+
createManyAndReturn: {
|
|
2326
|
+
args: Prisma.EmailSubscriberCreateManyAndReturnArgs<ExtArgs>
|
|
2327
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailSubscriberPayload>[]
|
|
2328
|
+
}
|
|
2329
|
+
delete: {
|
|
2330
|
+
args: Prisma.EmailSubscriberDeleteArgs<ExtArgs>
|
|
2331
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailSubscriberPayload>
|
|
2332
|
+
}
|
|
2333
|
+
update: {
|
|
2334
|
+
args: Prisma.EmailSubscriberUpdateArgs<ExtArgs>
|
|
2335
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailSubscriberPayload>
|
|
2336
|
+
}
|
|
2337
|
+
deleteMany: {
|
|
2338
|
+
args: Prisma.EmailSubscriberDeleteManyArgs<ExtArgs>
|
|
2339
|
+
result: BatchPayload
|
|
2340
|
+
}
|
|
2341
|
+
updateMany: {
|
|
2342
|
+
args: Prisma.EmailSubscriberUpdateManyArgs<ExtArgs>
|
|
2343
|
+
result: BatchPayload
|
|
2344
|
+
}
|
|
2345
|
+
updateManyAndReturn: {
|
|
2346
|
+
args: Prisma.EmailSubscriberUpdateManyAndReturnArgs<ExtArgs>
|
|
2347
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailSubscriberPayload>[]
|
|
2348
|
+
}
|
|
2349
|
+
upsert: {
|
|
2350
|
+
args: Prisma.EmailSubscriberUpsertArgs<ExtArgs>
|
|
2351
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$EmailSubscriberPayload>
|
|
2352
|
+
}
|
|
2353
|
+
aggregate: {
|
|
2354
|
+
args: Prisma.EmailSubscriberAggregateArgs<ExtArgs>
|
|
2355
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateEmailSubscriber>
|
|
2356
|
+
}
|
|
2357
|
+
groupBy: {
|
|
2358
|
+
args: Prisma.EmailSubscriberGroupByArgs<ExtArgs>
|
|
2359
|
+
result: runtime.Types.Utils.Optional<Prisma.EmailSubscriberGroupByOutputType>[]
|
|
2360
|
+
}
|
|
2361
|
+
count: {
|
|
2362
|
+
args: Prisma.EmailSubscriberCountArgs<ExtArgs>
|
|
2363
|
+
result: runtime.Types.Utils.Optional<Prisma.EmailSubscriberCountAggregateOutputType> | number
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
1992
2367
|
KnowledgeBase: {
|
|
1993
2368
|
payload: Prisma.$KnowledgeBasePayload<ExtArgs>
|
|
1994
2369
|
fields: Prisma.KnowledgeBaseFieldRefs
|
|
@@ -8660,7 +9035,9 @@ export const InvitationCodeScalarFieldEnum = {
|
|
|
8660
9035
|
maxUses: 'maxUses',
|
|
8661
9036
|
usedCount: 'usedCount',
|
|
8662
9037
|
expiresAt: 'expiresAt',
|
|
8663
|
-
createdAt: 'createdAt'
|
|
9038
|
+
createdAt: 'createdAt',
|
|
9039
|
+
createdById: 'createdById',
|
|
9040
|
+
disabledAt: 'disabledAt'
|
|
8664
9041
|
} as const
|
|
8665
9042
|
|
|
8666
9043
|
export type InvitationCodeScalarFieldEnum = (typeof InvitationCodeScalarFieldEnum)[keyof typeof InvitationCodeScalarFieldEnum]
|
|
@@ -8688,6 +9065,74 @@ export const PasswordResetTokenScalarFieldEnum = {
|
|
|
8688
9065
|
export type PasswordResetTokenScalarFieldEnum = (typeof PasswordResetTokenScalarFieldEnum)[keyof typeof PasswordResetTokenScalarFieldEnum]
|
|
8689
9066
|
|
|
8690
9067
|
|
|
9068
|
+
export const EmailVerificationTokenScalarFieldEnum = {
|
|
9069
|
+
id: 'id',
|
|
9070
|
+
token: 'token',
|
|
9071
|
+
userId: 'userId',
|
|
9072
|
+
expiresAt: 'expiresAt',
|
|
9073
|
+
usedAt: 'usedAt',
|
|
9074
|
+
createdAt: 'createdAt'
|
|
9075
|
+
} as const
|
|
9076
|
+
|
|
9077
|
+
export type EmailVerificationTokenScalarFieldEnum = (typeof EmailVerificationTokenScalarFieldEnum)[keyof typeof EmailVerificationTokenScalarFieldEnum]
|
|
9078
|
+
|
|
9079
|
+
|
|
9080
|
+
export const EmailLogScalarFieldEnum = {
|
|
9081
|
+
id: 'id',
|
|
9082
|
+
to: 'to',
|
|
9083
|
+
templateKey: 'templateKey',
|
|
9084
|
+
category: 'category',
|
|
9085
|
+
status: 'status',
|
|
9086
|
+
provider: 'provider',
|
|
9087
|
+
messageId: 'messageId',
|
|
9088
|
+
dedupeKey: 'dedupeKey',
|
|
9089
|
+
error: 'error',
|
|
9090
|
+
userId: 'userId',
|
|
9091
|
+
createdAt: 'createdAt',
|
|
9092
|
+
sentAt: 'sentAt'
|
|
9093
|
+
} as const
|
|
9094
|
+
|
|
9095
|
+
export type EmailLogScalarFieldEnum = (typeof EmailLogScalarFieldEnum)[keyof typeof EmailLogScalarFieldEnum]
|
|
9096
|
+
|
|
9097
|
+
|
|
9098
|
+
export const EmailPreferenceScalarFieldEnum = {
|
|
9099
|
+
userId: 'userId',
|
|
9100
|
+
unsubscribedAll: 'unsubscribedAll',
|
|
9101
|
+
unsubscribedCategories: 'unsubscribedCategories',
|
|
9102
|
+
suppressed: 'suppressed'
|
|
9103
|
+
} as const
|
|
9104
|
+
|
|
9105
|
+
export type EmailPreferenceScalarFieldEnum = (typeof EmailPreferenceScalarFieldEnum)[keyof typeof EmailPreferenceScalarFieldEnum]
|
|
9106
|
+
|
|
9107
|
+
|
|
9108
|
+
export const OAuthProviderConfigScalarFieldEnum = {
|
|
9109
|
+
id: 'id',
|
|
9110
|
+
provider: 'provider',
|
|
9111
|
+
clientId: 'clientId',
|
|
9112
|
+
clientSecret: 'clientSecret',
|
|
9113
|
+
enabled: 'enabled',
|
|
9114
|
+
extra: 'extra',
|
|
9115
|
+
createdAt: 'createdAt',
|
|
9116
|
+
updatedAt: 'updatedAt'
|
|
9117
|
+
} as const
|
|
9118
|
+
|
|
9119
|
+
export type OAuthProviderConfigScalarFieldEnum = (typeof OAuthProviderConfigScalarFieldEnum)[keyof typeof OAuthProviderConfigScalarFieldEnum]
|
|
9120
|
+
|
|
9121
|
+
|
|
9122
|
+
export const EmailSubscriberScalarFieldEnum = {
|
|
9123
|
+
id: 'id',
|
|
9124
|
+
email: 'email',
|
|
9125
|
+
locale: 'locale',
|
|
9126
|
+
confirmToken: 'confirmToken',
|
|
9127
|
+
confirmedAt: 'confirmedAt',
|
|
9128
|
+
unsubscribedAt: 'unsubscribedAt',
|
|
9129
|
+
source: 'source',
|
|
9130
|
+
createdAt: 'createdAt'
|
|
9131
|
+
} as const
|
|
9132
|
+
|
|
9133
|
+
export type EmailSubscriberScalarFieldEnum = (typeof EmailSubscriberScalarFieldEnum)[keyof typeof EmailSubscriberScalarFieldEnum]
|
|
9134
|
+
|
|
9135
|
+
|
|
8691
9136
|
export const KnowledgeBaseScalarFieldEnum = {
|
|
8692
9137
|
id: 'id',
|
|
8693
9138
|
name: 'name',
|
|
@@ -9994,6 +10439,7 @@ export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[k
|
|
|
9994
10439
|
export const NotificationPreferenceScalarFieldEnum = {
|
|
9995
10440
|
userId: 'userId',
|
|
9996
10441
|
categories: 'categories',
|
|
10442
|
+
emailCategories: 'emailCategories',
|
|
9997
10443
|
dndEnabled: 'dndEnabled',
|
|
9998
10444
|
dndStart: 'dndStart',
|
|
9999
10445
|
dndEnd: 'dndEnd'
|
|
@@ -10462,6 +10908,11 @@ export type GlobalOmitConfig = {
|
|
|
10462
10908
|
invitationCode?: Prisma.InvitationCodeOmit
|
|
10463
10909
|
invitationUse?: Prisma.InvitationUseOmit
|
|
10464
10910
|
passwordResetToken?: Prisma.PasswordResetTokenOmit
|
|
10911
|
+
emailVerificationToken?: Prisma.EmailVerificationTokenOmit
|
|
10912
|
+
emailLog?: Prisma.EmailLogOmit
|
|
10913
|
+
emailPreference?: Prisma.EmailPreferenceOmit
|
|
10914
|
+
oAuthProviderConfig?: Prisma.OAuthProviderConfigOmit
|
|
10915
|
+
emailSubscriber?: Prisma.EmailSubscriberOmit
|
|
10465
10916
|
knowledgeBase?: Prisma.KnowledgeBaseOmit
|
|
10466
10917
|
knowledgeDocument?: Prisma.KnowledgeDocumentOmit
|
|
10467
10918
|
pRD?: Prisma.PRDOmit
|
|
@@ -71,6 +71,11 @@ export const ModelName = {
|
|
|
71
71
|
InvitationCode: 'InvitationCode',
|
|
72
72
|
InvitationUse: 'InvitationUse',
|
|
73
73
|
PasswordResetToken: 'PasswordResetToken',
|
|
74
|
+
EmailVerificationToken: 'EmailVerificationToken',
|
|
75
|
+
EmailLog: 'EmailLog',
|
|
76
|
+
EmailPreference: 'EmailPreference',
|
|
77
|
+
OAuthProviderConfig: 'OAuthProviderConfig',
|
|
78
|
+
EmailSubscriber: 'EmailSubscriber',
|
|
74
79
|
KnowledgeBase: 'KnowledgeBase',
|
|
75
80
|
KnowledgeDocument: 'KnowledgeDocument',
|
|
76
81
|
PRD: 'PRD',
|
|
@@ -443,7 +448,9 @@ export const InvitationCodeScalarFieldEnum = {
|
|
|
443
448
|
maxUses: 'maxUses',
|
|
444
449
|
usedCount: 'usedCount',
|
|
445
450
|
expiresAt: 'expiresAt',
|
|
446
|
-
createdAt: 'createdAt'
|
|
451
|
+
createdAt: 'createdAt',
|
|
452
|
+
createdById: 'createdById',
|
|
453
|
+
disabledAt: 'disabledAt'
|
|
447
454
|
} as const
|
|
448
455
|
|
|
449
456
|
export type InvitationCodeScalarFieldEnum = (typeof InvitationCodeScalarFieldEnum)[keyof typeof InvitationCodeScalarFieldEnum]
|
|
@@ -471,6 +478,74 @@ export const PasswordResetTokenScalarFieldEnum = {
|
|
|
471
478
|
export type PasswordResetTokenScalarFieldEnum = (typeof PasswordResetTokenScalarFieldEnum)[keyof typeof PasswordResetTokenScalarFieldEnum]
|
|
472
479
|
|
|
473
480
|
|
|
481
|
+
export const EmailVerificationTokenScalarFieldEnum = {
|
|
482
|
+
id: 'id',
|
|
483
|
+
token: 'token',
|
|
484
|
+
userId: 'userId',
|
|
485
|
+
expiresAt: 'expiresAt',
|
|
486
|
+
usedAt: 'usedAt',
|
|
487
|
+
createdAt: 'createdAt'
|
|
488
|
+
} as const
|
|
489
|
+
|
|
490
|
+
export type EmailVerificationTokenScalarFieldEnum = (typeof EmailVerificationTokenScalarFieldEnum)[keyof typeof EmailVerificationTokenScalarFieldEnum]
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
export const EmailLogScalarFieldEnum = {
|
|
494
|
+
id: 'id',
|
|
495
|
+
to: 'to',
|
|
496
|
+
templateKey: 'templateKey',
|
|
497
|
+
category: 'category',
|
|
498
|
+
status: 'status',
|
|
499
|
+
provider: 'provider',
|
|
500
|
+
messageId: 'messageId',
|
|
501
|
+
dedupeKey: 'dedupeKey',
|
|
502
|
+
error: 'error',
|
|
503
|
+
userId: 'userId',
|
|
504
|
+
createdAt: 'createdAt',
|
|
505
|
+
sentAt: 'sentAt'
|
|
506
|
+
} as const
|
|
507
|
+
|
|
508
|
+
export type EmailLogScalarFieldEnum = (typeof EmailLogScalarFieldEnum)[keyof typeof EmailLogScalarFieldEnum]
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
export const EmailPreferenceScalarFieldEnum = {
|
|
512
|
+
userId: 'userId',
|
|
513
|
+
unsubscribedAll: 'unsubscribedAll',
|
|
514
|
+
unsubscribedCategories: 'unsubscribedCategories',
|
|
515
|
+
suppressed: 'suppressed'
|
|
516
|
+
} as const
|
|
517
|
+
|
|
518
|
+
export type EmailPreferenceScalarFieldEnum = (typeof EmailPreferenceScalarFieldEnum)[keyof typeof EmailPreferenceScalarFieldEnum]
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
export const OAuthProviderConfigScalarFieldEnum = {
|
|
522
|
+
id: 'id',
|
|
523
|
+
provider: 'provider',
|
|
524
|
+
clientId: 'clientId',
|
|
525
|
+
clientSecret: 'clientSecret',
|
|
526
|
+
enabled: 'enabled',
|
|
527
|
+
extra: 'extra',
|
|
528
|
+
createdAt: 'createdAt',
|
|
529
|
+
updatedAt: 'updatedAt'
|
|
530
|
+
} as const
|
|
531
|
+
|
|
532
|
+
export type OAuthProviderConfigScalarFieldEnum = (typeof OAuthProviderConfigScalarFieldEnum)[keyof typeof OAuthProviderConfigScalarFieldEnum]
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
export const EmailSubscriberScalarFieldEnum = {
|
|
536
|
+
id: 'id',
|
|
537
|
+
email: 'email',
|
|
538
|
+
locale: 'locale',
|
|
539
|
+
confirmToken: 'confirmToken',
|
|
540
|
+
confirmedAt: 'confirmedAt',
|
|
541
|
+
unsubscribedAt: 'unsubscribedAt',
|
|
542
|
+
source: 'source',
|
|
543
|
+
createdAt: 'createdAt'
|
|
544
|
+
} as const
|
|
545
|
+
|
|
546
|
+
export type EmailSubscriberScalarFieldEnum = (typeof EmailSubscriberScalarFieldEnum)[keyof typeof EmailSubscriberScalarFieldEnum]
|
|
547
|
+
|
|
548
|
+
|
|
474
549
|
export const KnowledgeBaseScalarFieldEnum = {
|
|
475
550
|
id: 'id',
|
|
476
551
|
name: 'name',
|
|
@@ -1777,6 +1852,7 @@ export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[k
|
|
|
1777
1852
|
export const NotificationPreferenceScalarFieldEnum = {
|
|
1778
1853
|
userId: 'userId',
|
|
1779
1854
|
categories: 'categories',
|
|
1855
|
+
emailCategories: 'emailCategories',
|
|
1780
1856
|
dndEnabled: 'dndEnabled',
|
|
1781
1857
|
dndStart: 'dndStart',
|
|
1782
1858
|
dndEnd: 'dndEnd'
|