generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

model Reserva {
  id           String   @id @default(cuid())
  resourceId   String
  resourceName String
  date         String   // "YYYY-MM-DD"
  startTime    String   // "HH:mm"
  endTime      String   // "HH:mm"
  author       String
  notes        String?
  createdAt    DateTime @default(now())

  @@unique([resourceName, date, startTime])
  @@map("reservas")
}
