titles/prisma/schema.prisma
ChrQR 0ae54154e0
Some checks failed
Vercel Production Deployment / Deploy-Production (push) Failing after 1m19s
- updated actions to v4 in workflow
- Set up Postgres db on vercel
2024-05-13 10:15:55 +02:00

22 lines
538 B
Plaintext

// 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("POSTGRES_PRISMA_URL") // uses connection pooling
directUrl = env("POSTGRES_URL_NON_POOLING") // uses a direct connection
}
model Post {
id Int @id @default(autoincrement())
name String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([name])
}