// 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("DATABASE_URL") } model Calendar { id String @id @default(uuid()) userId String title String description String? createdAt DateTime @default(now()) updatedAt DateTime @updatedAt events Event[] } model Event { id String @id @default(cuid()) title String description String? start DateTime end DateTime allDay Boolean @default(false) location String? userId String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt @@index([userId]) @@index([start, end]) }