datasource db { provider = "sqlite" } generator client { provider = "prisma-client" // Generate into custom location because this repo has multiple prisma schemas output = "./client" moduleFormat = "esm" } generator pothos { provider = "prisma-pothos-types" // Match client output location from above clientOutput = "./client" output = "./generated.ts" generateDatamodel = true } model User { id Int @id @default(autoincrement()) firstName String lastName String posts Post[] comments Comment[] } model Post { id Int @id @default(autoincrement()) title String content String author User @relation(fields: [authorId], references: [id]) comments Comment[] authorId Int } model Comment { id Int @id @default(autoincrement()) comment String author User @relation(fields: [authorId], references: [id]) post Post @relation(fields: [postId], references: [id]) authorId Int postId Int }