updated prisma file

This commit is contained in:
2024-11-03 21:56:16 -06:00
parent 1e4ee83c5b
commit a89de383d9

View File

@@ -6,24 +6,9 @@ generator client {
}
datasource db {
provider = "postgresql"
// NOTE: When using mysql or sqlserver, uncomment the @db.Text annotations in model Account below
// Further reading:
// https://next-auth.js.org/adapters/prisma#create-the-prisma-schema
// https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string
url = env("DATABASE_URL")
}
model Post {
id Int @id @default(autoincrement())
name String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
createdBy User @relation(fields: [createdById], references: [id])
createdById String
@@index([name])
provider = "postgresql"
url = env("POSTGRES_PRISMA_URL") // uses connection pooling
directUrl = env("POSTGRES_URL_NON_POOLING") // uses a direct connection
}
// Necessary for Next auth
@@ -62,7 +47,7 @@ model User {
image String?
accounts Account[]
sessions Session[]
posts Post[]
// posts Post[]
}
model VerificationToken {