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")