theater-service/prisma/schema.prisma

27 lines
544 B
Plaintext

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
// Get a free hosted Postgres database in seconds: `npx create-db`
generator client {
provider = "prisma-client"
output = "./generated"
moduleFormat = "cjs"
}
datasource db {
provider = "postgresql"
}
model Theater {
id String @id @default(nanoid())
name String
address String
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
@@map("theaters")
}