From 11955c4f551dce5aaa44d517afbc12e42f7bef3d Mon Sep 17 00:00:00 2001 From: liuyun Date: Thu, 15 Oct 2026 07:30:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(c5):=20svc=5Forg=20photo=5Ftier=20+=20agen?= =?UTF-8?q?cy=20=E6=9C=BA=E6=9E=84=E9=85=8D=E7=BD=AE=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- .../20261015020000_c5_config/migration.sql | 7 +++++++ prisma/schema.prisma | 12 ++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 prisma/migrations/20261015020000_c5_config/migration.sql diff --git a/prisma/migrations/20261015020000_c5_config/migration.sql b/prisma/migrations/20261015020000_c5_config/migration.sql new file mode 100644 index 0000000..d6fa1cc --- /dev/null +++ b/prisma/migrations/20261015020000_c5_config/migration.sql @@ -0,0 +1,7 @@ +-- AlterTable +ALTER TABLE `ltc_agency` ADD COLUMN `docking_tier` VARCHAR(10) NOT NULL DEFAULT 'B', + ADD COLUMN `new_national_notify` BOOLEAN NOT NULL DEFAULT true, + ADD COLUMN `qc_threshold` INTEGER NOT NULL DEFAULT 24; + +-- AlterTable +ALTER TABLE `svc_org` ADD COLUMN `photo_tier` VARCHAR(10) NOT NULL DEFAULT 'free'; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 1e0cf74..026c4bf 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -314,10 +314,13 @@ model Agency { contactPhone String @map("contact_phone") @db.VarChar(15) bedCount Int? @map("bed_count") signDate DateTime? @map("sign_date") @db.Date - createdAt DateTime @default(now()) @map("created_at") - createdBy String? @map("created_by") @db.VarChar(36) - updatedAt DateTime @updatedAt @map("updated_at") - deletedAt DateTime? @map("deleted_at") + createdAt DateTime @default(now()) @map("created_at") + createdBy String? @map("created_by") @db.VarChar(36) + updatedAt DateTime @updatedAt @map("updated_at") + deletedAt DateTime? @map("deleted_at") + qcThreshold Int @default(24) @map("qc_threshold") + dockingTier String @default("B") @map("docking_tier") @db.VarChar(10) + newNationalNotify Boolean @default(true) @map("new_national_notify") @@map("ltc_agency") } @@ -407,6 +410,7 @@ model SvcOrg { price String? @map("price") @db.VarChar(50) priceEffective DateTime? @map("price_effective") isNewNational Boolean @default(false) @map("is_new_national") + photoTier String @default("free") @map("photo_tier") @db.VarChar(10) createdAt DateTime @default(now()) @map("created_at") createdBy String? @map("created_by") @db.VarChar(36) updatedAt DateTime @updatedAt @map("updated_at")