Files
kozmos-web/prisma/schema.prisma
T

79 lines
1.9 KiB
Plaintext

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
// Get a free hosted Postgres database in seconds: `npx create-db`
generator client {
provider = "prisma-client"
output = "../app/generated/prisma"
}
datasource db {
provider = "postgresql"
}
model Admin {
id String @id @default(cuid())
name String
email String @unique
password String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Event {
id String @id @default(cuid())
title String
time String
tag String
iconType String @default("music")
colorTheme String @default("cyan")
isFeatured Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model GalleryImage {
id String @id @default(cuid())
src String // Image URL
alt String? // Alt text or title
order Int @default(0) // Ordering
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model ContactSettings {
id String @id @default("default")
address String @db.Text
phone String
instagram String
mapUrl String @db.Text
updatedAt DateTime @updatedAt
}
model BeachSettings {
id String @id @default("default")
title String
description String @db.Text
reservationInfo String @db.Text
image1 String
image2 String
image3 String
image4 String
updatedAt DateTime @updatedAt
}
model AboutSettings {
id String @id @default("default")
title String
description String @db.Text
card1Title String
card1Desc String @db.Text
card2Title String
card2Desc String @db.Text
card3Title String
card3Desc String @db.Text
image String
updatedAt DateTime @updatedAt
}