// 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 = "sqlite" url = env("DATABASE_URL") } model User { id Int @id @default(autoincrement()) email String @unique name String? posts Auftrag[] } model Event { id Int @id @default(autoincrement()) date String time String location String Auftrag Auftrag? } model Auftrag { id Int @id @default(autoincrement()) title String ticket String? event Event @relation(fields: [eventID],references: [id]) eventID Int @unique published Boolean @default(false) author User @relation(fields: [authorId], references: [id]) authorId Int }