feat: health check seo

This commit is contained in:
Kailasdevdas
2026-05-26 11:56:22 +05:30
parent 31c0e50177
commit 4d73da5ddd
9 changed files with 886 additions and 325 deletions
@@ -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;
+6 -1
View File
@@ -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