feat(db): add security question and backup email recovery fields to Merchant schema

This commit is contained in:
ssbg04 committed 2026-10-20 16:50:39 +08:00
1 parent ae194d756a
commit 8b994ee607
1 file changed
+10 -7
+10 -7
View File
@@ -11,13 +11,16 @@ datasource db {
}
model Merchant {
id String @id @default(uuid())
phone String @unique
fullName String
pinHash String?
role String @default("MERCHANT") // MERCHANT, ADMIN, B2B_PARTNER
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
id String @id @default(uuid())
phone String @unique
fullName String
pinHash String?
securityQuestion String? // e.g. "PET_NAME", "MOTHER_MAIDEN_NAME", "FAVORITE_SNACK"
securityAnswerHash String?
backupEmail String?
role String @default("MERCHANT") // MERCHANT, ADMIN, B2B_PARTNER
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
stores Store[]