feat: health check seo
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- A unique constraint covering the columns `[seoId]` on the table `HealthPackage` will be added. If there are existing duplicate values, this will fail.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "HealthPackage" ADD COLUMN "seoId" INTEGER;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "HealthPackage_seoId_key" ON "HealthPackage"("seoId");
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "HealthPackage" ADD CONSTRAINT "HealthPackage_seoId_fkey" FOREIGN KEY ("seoId") REFERENCES "Seo"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
@@ -259,6 +259,9 @@ model HealthPackage {
|
||||
|
||||
inquiries HealthPackageInquiry[]
|
||||
|
||||
seoId Int? @unique
|
||||
seo Seo? @relation(fields: [seoId], references: [id])
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
@@ -294,7 +297,9 @@ model DoctorSpecialization {
|
||||
|
||||
model Seo {
|
||||
id Int @id @default(autoincrement())
|
||||
doctor Doctor?
|
||||
doctor Doctor?
|
||||
healthPackage HealthPackage?
|
||||
|
||||
|
||||
seoTitle String?
|
||||
metaDescription String? @db.Text
|
||||
|
||||
Reference in New Issue
Block a user