@allbluecn/database 0.5.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 +35 -0
- package/generated/client.ts +35 -0
- package/generated/internal/class.ts +74 -4
- package/generated/internal/prismaNamespace.ts +634 -2
- package/generated/internal/prismaNamespaceBrowser.ts +108 -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/KnowledgeBase.ts +158 -0
- package/generated/models/KnowledgeDocument.ts +176 -0
- package/generated/models/NotificationPreference.ts +27 -1
- package/generated/models/OAuthProviderConfig.ts +1227 -0
- package/generated/models/User.ts +2405 -493
- package/generated/models/Workspace.ts +380 -0
- package/generated/models/WorkspaceKnowledgeBase.ts +1430 -0
- package/generated/models/WorkspaceQuickDoc.ts +2030 -0
- package/generated/models.ts +7 -0
- package/generated-sqlite/browser.ts +40 -0
- package/generated-sqlite/client.ts +40 -0
- package/generated-sqlite/internal/class.ts +84 -4
- package/generated-sqlite/internal/prismaNamespace.ts +722 -3
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +121 -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/KnowledgeBase.ts +150 -0
- package/generated-sqlite/models/KnowledgeDocument.ts +168 -0
- package/generated-sqlite/models/NotificationPreference.ts +1313 -0
- package/generated-sqlite/models/OAuthProviderConfig.ts +1225 -0
- package/generated-sqlite/models/User.ts +2252 -160
- package/generated-sqlite/models/Workspace.ts +300 -0
- package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +1426 -0
- package/generated-sqlite/models/WorkspaceQuickDoc.ts +2025 -0
- package/generated-sqlite/models.ts +8 -0
- package/migrations/20260909070745_workspace_kb_card/migration.sql +55 -0
- package/migrations/20260909123637_workspace_quick_doc_column_index/migration.sql +2 -0
- package/migrations/20260909123656_workspace_quick_doc_column_backfill/migration.sql +4 -0
- package/migrations/20260909144328_workspace_quick_doc_label/migration.sql +2 -0
- package/migrations/20260909154315_workspace_quick_doc_icon/migration.sql +2 -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 +141 -14
- package/schema.sqlite.prisma +141 -6
|
@@ -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',
|
|
@@ -124,6 +129,8 @@ export const ModelName = {
|
|
|
124
129
|
CommentReaction: 'CommentReaction',
|
|
125
130
|
StoryDependency: 'StoryDependency',
|
|
126
131
|
ProjectKnowledgeBase: 'ProjectKnowledgeBase',
|
|
132
|
+
WorkspaceKnowledgeBase: 'WorkspaceKnowledgeBase',
|
|
133
|
+
WorkspaceQuickDoc: 'WorkspaceQuickDoc',
|
|
127
134
|
StoryLink: 'StoryLink',
|
|
128
135
|
StoryAttachment: 'StoryAttachment',
|
|
129
136
|
StoryPrdLink: 'StoryPrdLink',
|
|
@@ -441,7 +448,9 @@ export const InvitationCodeScalarFieldEnum = {
|
|
|
441
448
|
maxUses: 'maxUses',
|
|
442
449
|
usedCount: 'usedCount',
|
|
443
450
|
expiresAt: 'expiresAt',
|
|
444
|
-
createdAt: 'createdAt'
|
|
451
|
+
createdAt: 'createdAt',
|
|
452
|
+
createdById: 'createdById',
|
|
453
|
+
disabledAt: 'disabledAt'
|
|
445
454
|
} as const
|
|
446
455
|
|
|
447
456
|
export type InvitationCodeScalarFieldEnum = (typeof InvitationCodeScalarFieldEnum)[keyof typeof InvitationCodeScalarFieldEnum]
|
|
@@ -469,6 +478,74 @@ export const PasswordResetTokenScalarFieldEnum = {
|
|
|
469
478
|
export type PasswordResetTokenScalarFieldEnum = (typeof PasswordResetTokenScalarFieldEnum)[keyof typeof PasswordResetTokenScalarFieldEnum]
|
|
470
479
|
|
|
471
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
|
+
|
|
472
549
|
export const KnowledgeBaseScalarFieldEnum = {
|
|
473
550
|
id: 'id',
|
|
474
551
|
name: 'name',
|
|
@@ -1304,6 +1381,35 @@ export const ProjectKnowledgeBaseScalarFieldEnum = {
|
|
|
1304
1381
|
export type ProjectKnowledgeBaseScalarFieldEnum = (typeof ProjectKnowledgeBaseScalarFieldEnum)[keyof typeof ProjectKnowledgeBaseScalarFieldEnum]
|
|
1305
1382
|
|
|
1306
1383
|
|
|
1384
|
+
export const WorkspaceKnowledgeBaseScalarFieldEnum = {
|
|
1385
|
+
id: 'id',
|
|
1386
|
+
workspaceId: 'workspaceId',
|
|
1387
|
+
kbId: 'kbId',
|
|
1388
|
+
createdAt: 'createdAt'
|
|
1389
|
+
} as const
|
|
1390
|
+
|
|
1391
|
+
export type WorkspaceKnowledgeBaseScalarFieldEnum = (typeof WorkspaceKnowledgeBaseScalarFieldEnum)[keyof typeof WorkspaceKnowledgeBaseScalarFieldEnum]
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
export const WorkspaceQuickDocScalarFieldEnum = {
|
|
1395
|
+
id: 'id',
|
|
1396
|
+
workspaceId: 'workspaceId',
|
|
1397
|
+
docId: 'docId',
|
|
1398
|
+
externalGroup: 'externalGroup',
|
|
1399
|
+
externalId: 'externalId',
|
|
1400
|
+
displayTitle: 'displayTitle',
|
|
1401
|
+
columnIndex: 'columnIndex',
|
|
1402
|
+
sortOrder: 'sortOrder',
|
|
1403
|
+
label: 'label',
|
|
1404
|
+
icon: 'icon',
|
|
1405
|
+
createdBy: 'createdBy',
|
|
1406
|
+
createdAt: 'createdAt',
|
|
1407
|
+
updatedAt: 'updatedAt'
|
|
1408
|
+
} as const
|
|
1409
|
+
|
|
1410
|
+
export type WorkspaceQuickDocScalarFieldEnum = (typeof WorkspaceQuickDocScalarFieldEnum)[keyof typeof WorkspaceQuickDocScalarFieldEnum]
|
|
1411
|
+
|
|
1412
|
+
|
|
1307
1413
|
export const StoryLinkScalarFieldEnum = {
|
|
1308
1414
|
id: 'id',
|
|
1309
1415
|
storyId: 'storyId',
|
|
@@ -1746,6 +1852,7 @@ export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[k
|
|
|
1746
1852
|
export const NotificationPreferenceScalarFieldEnum = {
|
|
1747
1853
|
userId: 'userId',
|
|
1748
1854
|
categories: 'categories',
|
|
1855
|
+
emailCategories: 'emailCategories',
|
|
1749
1856
|
dndEnabled: 'dndEnabled',
|
|
1750
1857
|
dndStart: 'dndStart',
|
|
1751
1858
|
dndEnd: 'dndEnd'
|