transform core api codes into this project, update modules as admin/pos context modules
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
model Token {
|
||||
id String @id @default(uuid())
|
||||
token String @unique
|
||||
type TokenType
|
||||
created_at DateTime @default(now())
|
||||
expires_at DateTime
|
||||
|
||||
account_id String
|
||||
account Account @relation(fields: [account_id], references: [id])
|
||||
|
||||
@@unique([type, account_id])
|
||||
@@map("tokens")
|
||||
}
|
||||
|
||||
model VerificationCode {
|
||||
id String @id @default(uuid())
|
||||
code String
|
||||
is_used Boolean @default(false)
|
||||
created_at DateTime @default(now())
|
||||
expires_at DateTime
|
||||
|
||||
account_id String
|
||||
account Account @relation(fields: [account_id], references: [id])
|
||||
|
||||
@@map("verification_codes")
|
||||
}
|
||||
Reference in New Issue
Block a user