@danielcok17/prisma-db 1.14.0 → 1.14.1
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/package.json +1 -1
- package/prisma/app.prisma +21 -0
package/package.json
CHANGED
package/prisma/app.prisma
CHANGED
|
@@ -83,6 +83,11 @@ model User {
|
|
|
83
83
|
registrationUtmCampaign String? // Kampaň pri registrácii
|
|
84
84
|
registrationUtmContent String? // Content/variant pri registrácii
|
|
85
85
|
registrationUtmTerm String? // Keywords pri registrácii
|
|
86
|
+
// Onboarding fields
|
|
87
|
+
occupation String?
|
|
88
|
+
phone String?
|
|
89
|
+
phoneVerified DateTime?
|
|
90
|
+
preferredLanguage String? @default("sk")
|
|
86
91
|
// Relations
|
|
87
92
|
approvalRequest UserApprovalRequest?
|
|
88
93
|
stripeCustomer StripeCustomer? // ✨ B2C Stripe customer
|
|
@@ -98,6 +103,7 @@ model User {
|
|
|
98
103
|
workflowLogs WorkflowLog[]
|
|
99
104
|
verificationTokens VerificationToken[]
|
|
100
105
|
passwordResetTokens PasswordResetToken[]
|
|
106
|
+
phoneOtps PhoneOtp[]
|
|
101
107
|
canvasDocuments CanvasDocument[]
|
|
102
108
|
canvasDocumentVersions CanvasDocumentVersion[]
|
|
103
109
|
// Folder system relations
|
|
@@ -995,6 +1001,21 @@ model PasswordResetToken {
|
|
|
995
1001
|
@@index([expires])
|
|
996
1002
|
}
|
|
997
1003
|
|
|
1004
|
+
// Phone OTP verification (BulkGate)
|
|
1005
|
+
model PhoneOtp {
|
|
1006
|
+
id String @id @default(cuid())
|
|
1007
|
+
userId String
|
|
1008
|
+
phone String
|
|
1009
|
+
bulkgateId String @unique // OTP ID from BulkGate API response
|
|
1010
|
+
expiresAt DateTime
|
|
1011
|
+
createdAt DateTime @default(now())
|
|
1012
|
+
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
1013
|
+
|
|
1014
|
+
@@index([userId])
|
|
1015
|
+
@@index([bulkgateId])
|
|
1016
|
+
@@index([expiresAt])
|
|
1017
|
+
}
|
|
1018
|
+
|
|
998
1019
|
// ============================================
|
|
999
1020
|
// CANVAS DOCUMENT MODELS
|
|
1000
1021
|
// ============================================
|