2022-12-13 14:27:28 +00:00
|
|
|
// This is your Prisma schema file,
|
|
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
|
|
|
|
generator client {
|
|
|
|
provider = "prisma-client-js"
|
|
|
|
}
|
|
|
|
|
|
|
|
datasource db {
|
|
|
|
provider = "postgresql"
|
|
|
|
url = env("DATABASE_URL")
|
|
|
|
}
|
|
|
|
|
|
|
|
model User {
|
2022-12-14 11:10:27 +00:00
|
|
|
uuid String @id @default(uuid()) @db.Uuid
|
2022-12-21 15:15:57 +00:00
|
|
|
firstName String?
|
|
|
|
lastName String?
|
|
|
|
email String? @unique
|
|
|
|
phone String? @unique
|
2022-12-14 11:10:27 +00:00
|
|
|
createdAt DateTime @default(now())
|
|
|
|
updatedAt DateTime @updatedAt
|
2022-12-13 14:27:28 +00:00
|
|
|
|
|
|
|
@@map("user")
|
|
|
|
}
|