20 lines
455 B
Text
20 lines
455 B
Text
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model Users {
|
|
id String @id @db.VarChar(36)
|
|
email String @unique @db.VarChar(320)
|
|
username String @db.VarChar(30)
|
|
password String
|
|
token_id String @db.VarChar(64) // Authenticate JWT for security
|
|
created_at DateTime @default(now())
|
|
updated_at DateTime @updatedAt
|
|
|
|
@@map("users")
|
|
}
|