auth-service/prisma/schema.prisma
2026-02-08 10:54:33 +03:00

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")
}