66 lines
1.4 KiB
Plaintext
66 lines
1.4 KiB
Plaintext
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model User {
|
|
id String @id @default(cuid())
|
|
username String @unique
|
|
password String
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
}
|
|
|
|
model Gallery {
|
|
id String @id @default(cuid())
|
|
title String
|
|
category String
|
|
imageUrl String
|
|
createdAt DateTime @default(now())
|
|
}
|
|
|
|
model Service {
|
|
id String @id @default(cuid())
|
|
title String
|
|
description String
|
|
iconUrl String?
|
|
createdAt DateTime @default(now())
|
|
}
|
|
|
|
model ContactMessage {
|
|
id String @id @default(cuid())
|
|
name String
|
|
email String
|
|
subject String?
|
|
message String
|
|
isRead Boolean @default(false)
|
|
createdAt DateTime @default(now())
|
|
}
|
|
|
|
model HeroMedia {
|
|
id String @id @default(cuid())
|
|
url String
|
|
type String // 'image' or 'video'
|
|
createdAt DateTime @default(now())
|
|
}
|
|
|
|
model SiteSettings {
|
|
id String @id @default(cuid())
|
|
logoUrl String?
|
|
phone String?
|
|
email String?
|
|
addressText1 String?
|
|
addressText2 String?
|
|
workingHours String?
|
|
instagramUrl String?
|
|
facebookUrl String?
|
|
youtubeUrl String?
|
|
whatsappNumber String?
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
}
|