feat(c5): svc_org photo_tier + agency 机构配置字段

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
liuyun 2026-10-15 07:30:08 +08:00
parent 9fea4efe0f
commit 11955c4f55
2 changed files with 15 additions and 4 deletions

View File

@ -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';

View File

@ -318,6 +318,9 @@ model Agency {
createdBy String? @map("created_by") @db.VarChar(36) createdBy String? @map("created_by") @db.VarChar(36)
updatedAt DateTime @updatedAt @map("updated_at") updatedAt DateTime @updatedAt @map("updated_at")
deletedAt DateTime? @map("deleted_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") @@map("ltc_agency")
} }
@ -407,6 +410,7 @@ model SvcOrg {
price String? @map("price") @db.VarChar(50) price String? @map("price") @db.VarChar(50)
priceEffective DateTime? @map("price_effective") priceEffective DateTime? @map("price_effective")
isNewNational Boolean @default(false) @map("is_new_national") 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") createdAt DateTime @default(now()) @map("created_at")
createdBy String? @map("created_by") @db.VarChar(36) createdBy String? @map("created_by") @db.VarChar(36)
updatedAt DateTime @updatedAt @map("updated_at") updatedAt DateTime @updatedAt @map("updated_at")