@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
|
@@ -69,6 +69,11 @@ export const ModelName = {
|
|
|
69
69
|
InvitationCode: 'InvitationCode',
|
|
70
70
|
InvitationUse: 'InvitationUse',
|
|
71
71
|
PasswordResetToken: 'PasswordResetToken',
|
|
72
|
+
EmailVerificationToken: 'EmailVerificationToken',
|
|
73
|
+
EmailLog: 'EmailLog',
|
|
74
|
+
EmailPreference: 'EmailPreference',
|
|
75
|
+
OAuthProviderConfig: 'OAuthProviderConfig',
|
|
76
|
+
EmailSubscriber: 'EmailSubscriber',
|
|
72
77
|
KnowledgeBase: 'KnowledgeBase',
|
|
73
78
|
ProjectKnowledgeBase: 'ProjectKnowledgeBase',
|
|
74
79
|
WorkspaceKnowledgeBase: 'WorkspaceKnowledgeBase',
|
|
@@ -134,7 +139,8 @@ export const ModelName = {
|
|
|
134
139
|
DeveloperLog: 'DeveloperLog',
|
|
135
140
|
Story: 'Story',
|
|
136
141
|
Iteration: 'Iteration',
|
|
137
|
-
IterationAutoSchedule: 'IterationAutoSchedule'
|
|
142
|
+
IterationAutoSchedule: 'IterationAutoSchedule',
|
|
143
|
+
NotificationPreference: 'NotificationPreference'
|
|
138
144
|
} as const
|
|
139
145
|
|
|
140
146
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -385,7 +391,9 @@ export const InvitationCodeScalarFieldEnum = {
|
|
|
385
391
|
maxUses: 'maxUses',
|
|
386
392
|
usedCount: 'usedCount',
|
|
387
393
|
expiresAt: 'expiresAt',
|
|
388
|
-
createdAt: 'createdAt'
|
|
394
|
+
createdAt: 'createdAt',
|
|
395
|
+
createdById: 'createdById',
|
|
396
|
+
disabledAt: 'disabledAt'
|
|
389
397
|
} as const
|
|
390
398
|
|
|
391
399
|
export type InvitationCodeScalarFieldEnum = (typeof InvitationCodeScalarFieldEnum)[keyof typeof InvitationCodeScalarFieldEnum]
|
|
@@ -413,6 +421,74 @@ export const PasswordResetTokenScalarFieldEnum = {
|
|
|
413
421
|
export type PasswordResetTokenScalarFieldEnum = (typeof PasswordResetTokenScalarFieldEnum)[keyof typeof PasswordResetTokenScalarFieldEnum]
|
|
414
422
|
|
|
415
423
|
|
|
424
|
+
export const EmailVerificationTokenScalarFieldEnum = {
|
|
425
|
+
id: 'id',
|
|
426
|
+
token: 'token',
|
|
427
|
+
userId: 'userId',
|
|
428
|
+
expiresAt: 'expiresAt',
|
|
429
|
+
usedAt: 'usedAt',
|
|
430
|
+
createdAt: 'createdAt'
|
|
431
|
+
} as const
|
|
432
|
+
|
|
433
|
+
export type EmailVerificationTokenScalarFieldEnum = (typeof EmailVerificationTokenScalarFieldEnum)[keyof typeof EmailVerificationTokenScalarFieldEnum]
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
export const EmailLogScalarFieldEnum = {
|
|
437
|
+
id: 'id',
|
|
438
|
+
to: 'to',
|
|
439
|
+
templateKey: 'templateKey',
|
|
440
|
+
category: 'category',
|
|
441
|
+
status: 'status',
|
|
442
|
+
provider: 'provider',
|
|
443
|
+
messageId: 'messageId',
|
|
444
|
+
dedupeKey: 'dedupeKey',
|
|
445
|
+
error: 'error',
|
|
446
|
+
userId: 'userId',
|
|
447
|
+
createdAt: 'createdAt',
|
|
448
|
+
sentAt: 'sentAt'
|
|
449
|
+
} as const
|
|
450
|
+
|
|
451
|
+
export type EmailLogScalarFieldEnum = (typeof EmailLogScalarFieldEnum)[keyof typeof EmailLogScalarFieldEnum]
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
export const EmailPreferenceScalarFieldEnum = {
|
|
455
|
+
userId: 'userId',
|
|
456
|
+
unsubscribedAll: 'unsubscribedAll',
|
|
457
|
+
unsubscribedCategories: 'unsubscribedCategories',
|
|
458
|
+
suppressed: 'suppressed'
|
|
459
|
+
} as const
|
|
460
|
+
|
|
461
|
+
export type EmailPreferenceScalarFieldEnum = (typeof EmailPreferenceScalarFieldEnum)[keyof typeof EmailPreferenceScalarFieldEnum]
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
export const OAuthProviderConfigScalarFieldEnum = {
|
|
465
|
+
id: 'id',
|
|
466
|
+
provider: 'provider',
|
|
467
|
+
clientId: 'clientId',
|
|
468
|
+
clientSecret: 'clientSecret',
|
|
469
|
+
enabled: 'enabled',
|
|
470
|
+
extra: 'extra',
|
|
471
|
+
createdAt: 'createdAt',
|
|
472
|
+
updatedAt: 'updatedAt'
|
|
473
|
+
} as const
|
|
474
|
+
|
|
475
|
+
export type OAuthProviderConfigScalarFieldEnum = (typeof OAuthProviderConfigScalarFieldEnum)[keyof typeof OAuthProviderConfigScalarFieldEnum]
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
export const EmailSubscriberScalarFieldEnum = {
|
|
479
|
+
id: 'id',
|
|
480
|
+
email: 'email',
|
|
481
|
+
locale: 'locale',
|
|
482
|
+
confirmToken: 'confirmToken',
|
|
483
|
+
confirmedAt: 'confirmedAt',
|
|
484
|
+
unsubscribedAt: 'unsubscribedAt',
|
|
485
|
+
source: 'source',
|
|
486
|
+
createdAt: 'createdAt'
|
|
487
|
+
} as const
|
|
488
|
+
|
|
489
|
+
export type EmailSubscriberScalarFieldEnum = (typeof EmailSubscriberScalarFieldEnum)[keyof typeof EmailSubscriberScalarFieldEnum]
|
|
490
|
+
|
|
491
|
+
|
|
416
492
|
export const KnowledgeBaseScalarFieldEnum = {
|
|
417
493
|
id: 'id',
|
|
418
494
|
name: 'name',
|
|
@@ -1506,6 +1582,18 @@ export const IterationAutoScheduleScalarFieldEnum = {
|
|
|
1506
1582
|
export type IterationAutoScheduleScalarFieldEnum = (typeof IterationAutoScheduleScalarFieldEnum)[keyof typeof IterationAutoScheduleScalarFieldEnum]
|
|
1507
1583
|
|
|
1508
1584
|
|
|
1585
|
+
export const NotificationPreferenceScalarFieldEnum = {
|
|
1586
|
+
userId: 'userId',
|
|
1587
|
+
categories: 'categories',
|
|
1588
|
+
emailCategories: 'emailCategories',
|
|
1589
|
+
dndEnabled: 'dndEnabled',
|
|
1590
|
+
dndStart: 'dndStart',
|
|
1591
|
+
dndEnd: 'dndEnd'
|
|
1592
|
+
} as const
|
|
1593
|
+
|
|
1594
|
+
export type NotificationPreferenceScalarFieldEnum = (typeof NotificationPreferenceScalarFieldEnum)[keyof typeof NotificationPreferenceScalarFieldEnum]
|
|
1595
|
+
|
|
1596
|
+
|
|
1509
1597
|
export const SortOrder = {
|
|
1510
1598
|
asc: 'asc',
|
|
1511
1599
|
desc: 'desc'
|