34 lines
598 B
Plaintext
34 lines
598 B
Plaintext
generator client {
|
|
provider = "prisma-client"
|
|
output = "./generated"
|
|
moduleFormat = "cjs"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
}
|
|
|
|
model Account {
|
|
id String @id @default(nanoid())
|
|
|
|
phone String? @unique
|
|
email String? @unique
|
|
|
|
isPhoneVerified Boolean @default(false) @map("is_phone_verified")
|
|
isEmailVerified Boolean @default(false) @map("is_email_verified")
|
|
|
|
role Role @default(USER)
|
|
|
|
createdAt DateTime @default(now()) @map("created_at")
|
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
|
|
@@map("accounts")
|
|
}
|
|
|
|
enum Role {
|
|
ADMIN
|
|
USER
|
|
|
|
@@map("roles")
|
|
}
|