// 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"
}

model Post {
  id          String   @id @default(cuid())
  title       String
  slug        String   @unique
  excerpt     String
  content     String?
  image       String?
  author      String   @default("Ayris Apart")
  lang        String   @default("tr") // 'tr' or 'en'
  published   Boolean  @default(false)
  createdAt   DateTime @default(now())
  updatedAt   DateTime @updatedAt

  @@index([slug, lang])
}

// In case we want to store Room/Suite data in DB later, we can add it here.
model Suite {
  id          String   @id
  name        String
  description String
  price       String
  image       String
  createdAt   DateTime @default(now())
  updatedAt   DateTime @updatedAt
}
