Files
psp_api/prisma/schema/admin/auth.prisma
T

45 lines
1.1 KiB
Plaintext
Raw Normal View History

2026-03-16 00:33:40 +03:30
model Account {
id String @id @default(uuid())
username String @unique()
2026-04-06 13:31:40 +03:30
password String
2026-03-16 00:33:40 +03:30
status AccountStatus
type AccountType
2026-03-16 00:33:40 +03:30
admin_account AdminAccount?
provider_account ProviderAccount?
partner_account PartnerAccount?
consumer_account ConsumerAccount?
2026-03-16 00:33:40 +03:30
// tokens Token[]
// refresh_tokens RefreshToken[]
2026-03-16 00:33:40 +03:30
@@map("accounts")
}
2026-03-16 00:33:40 +03:30
// model Token {
// id String @id @d @uniqueefault(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")
// }