user/prisma/schema.prisma

23 lines
456 B
Plaintext
Raw Normal View History

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-13 14:27:28 +00:00
firstName String
lastName String
2022-12-14 11:10:27 +00:00
email String @unique
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
2022-12-13 14:27:28 +00:00
@@map("user")
}