feat: facility and google review crud
This commit is contained in:
@@ -46,12 +46,12 @@ model Department {
|
||||
name String
|
||||
image String?
|
||||
|
||||
|
||||
para1 String?
|
||||
para2 String?
|
||||
para3 String?
|
||||
facilities String?
|
||||
services String?
|
||||
facilitiesList Facility[]
|
||||
|
||||
isActive Boolean @default(true)
|
||||
sortOrder Int @default(1000)
|
||||
@@ -300,6 +300,7 @@ model Seo {
|
||||
id Int @id @default(autoincrement())
|
||||
doctor Doctor?
|
||||
healthPackage HealthPackage?
|
||||
facility Facility?
|
||||
|
||||
|
||||
seoTitle String?
|
||||
@@ -378,4 +379,61 @@ model Accreditation {
|
||||
enum AccreditationType {
|
||||
ACCREDITATION
|
||||
CERTIFICATION
|
||||
}
|
||||
|
||||
model Facility {
|
||||
id Int @id @default(autoincrement())
|
||||
facilityId String @unique
|
||||
name String
|
||||
slug String @unique
|
||||
|
||||
shortDescription String? @db.Text
|
||||
description String? @db.Text
|
||||
videoUrl String?
|
||||
|
||||
isActive Boolean @default(true)
|
||||
isFeatured Boolean @default(false)
|
||||
sortOrder Int @default(1000)
|
||||
|
||||
images FacilityImage[]
|
||||
|
||||
departmentId Int?
|
||||
department Department? @relation(fields: [departmentId], references: [id], onDelete: SetNull)
|
||||
|
||||
seoId Int? @unique
|
||||
seo Seo? @relation(fields: [seoId], references: [id], onDelete: SetNull)
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model FacilityImage {
|
||||
id Int @id @default(autoincrement())
|
||||
url String
|
||||
altText String?
|
||||
description String?
|
||||
|
||||
facilityId Int
|
||||
facility Facility @relation(fields: [facilityId], references: [id], onDelete: Cascade)
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
}
|
||||
|
||||
model GoogleReview {
|
||||
id Int @id @default(autoincrement())
|
||||
|
||||
reviewerName String
|
||||
reviewerImage String?
|
||||
rating Int
|
||||
review String @db.Text
|
||||
reviewDate DateTime?
|
||||
googleReviewUrl String?
|
||||
|
||||
isFeatured Boolean @default(false)
|
||||
isActive Boolean @default(true)
|
||||
|
||||
sortOrder Int @default(1000)
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
Reference in New Issue
Block a user