2026-04-02 21:27:09 +06:00
|
|
|
enum ROLE {
|
|
|
|
|
ADMIN
|
|
|
|
|
USER
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
model Account {
|
2026-04-03 00:54:46 +06:00
|
|
|
id String @id @default(uuid())
|
|
|
|
|
email String @unique
|
|
|
|
|
password String
|
|
|
|
|
role ROLE @default(USER)
|
|
|
|
|
lastOtp String?
|
2026-04-02 21:27:09 +06:00
|
|
|
lastOtpSendingTime DateTime?
|
2026-04-03 00:54:46 +06:00
|
|
|
isDeleted Boolean @default(false)
|
|
|
|
|
isAccountVerified Boolean @default(false)
|
2026-04-07 22:32:13 +06:00
|
|
|
isSubscribe Boolean @default(false)
|
|
|
|
|
subscriptionId String?
|
|
|
|
|
plan Plan? @relation(fields: [subscriptionId], references: [id])
|
2026-04-03 00:54:46 +06:00
|
|
|
createdAt DateTime @default(now())
|
|
|
|
|
updatedAt DateTime @default(now())
|
2026-04-02 21:27:09 +06:00
|
|
|
|
|
|
|
|
profile Profile?
|
|
|
|
|
}
|