pipeline-app/deploy/migrations/m0035_bid_material_gaps.json

1 line
2.2 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"id": "m0035", "title": "投标产线材料缺口占位符规范(2026-09-16用户裁定): 新建bid_material_gaps表——正文占位符【材料待补:…】自动登记,合成后出材料缺失清单,人工提供材料后fill_material_gap自动替换正文补齐;json2ddl实跑验证(测试机2026-09-16)", "backup_tables": [], "up": [{"op": "sql", "sql": "CREATE TABLE IF NOT EXISTS bid_material_gaps (\n `id` VARCHAR(32) NOT NULL comment '主键ID',\n `project_id` VARCHAR(32) NOT NULL comment '项目ID',\n `chapter_id` VARCHAR(32) comment '章节ID',\n `chapter_no` VARCHAR(50) comment '章节号',\n `material_name` VARCHAR(250) NOT NULL comment '材料名称描述',\n `material_type` VARCHAR(32) DEFAULT 'other' comment '材料类型(certificate证书/screenshot截图/contract合同/seal盖章件/other)',\n `placeholder_text` VARCHAR(400) comment '正文占位符完整文本(补齐时精确替换用)',\n `fingerprint` VARCHAR(64) comment '去重指纹(project+chapter+描述sha1)',\n `requirement` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci comment '招标文件原文要求或评分条款',\n `source_ref` VARCHAR(480) comment '招标要求出处',\n `status` VARCHAR(16) NOT NULL DEFAULT 'pending' comment '状态(pending待补/filled已补齐/waived放弃)',\n `filled_by` VARCHAR(64) comment '补齐人',\n `fill_note` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci comment '补齐说明(材料出处或放弃理由)',\n `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL comment '创建时间',\n `updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL comment '更新时间(写入方显式NOW(),新机无ON UPDATE,平台约定)',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci comment '投标材料缺口清单表(占位符规范:m0035建表,写入方bid_material_capability.py与write_chapter自动登记,合成后出清单,人工补齐走fill_material_gap'"}, {"op": "sql", "sql": "CREATE INDEX IF NOT EXISTS bid_material_gaps_idx_project ON bid_material_gaps(project_id)"}, {"op": "sql", "sql": "CREATE INDEX IF NOT EXISTS bid_material_gaps_idx_fingerprint ON bid_material_gaps(fingerprint)"}], "down": [{"op": "sql", "sql": "DROP TABLE IF EXISTS bid_material_gaps"}]}