Files
shanxia2.0/backend/scripts/migrate_20261008_pl_cert_ocr_json.sql
wuzilongandCursor d22b06dbe7 feat(pl): 易制毒先安排待确认与购买证管理
含易制毒计划安排后进入已安排待确认,确认通过后再占合同并生成链接/地磅;新增购买证/运输证主数据、产品行关联、余量校验与 OCR 配置,并停止跟踪 api_key/app.pid。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-09 18:41:10 +08:00

10 lines
469 B
SQL

-- 购买证 / 运输证:大模型识别结果 JSON 落库
-- MySQL 5.7 utf8mb4
ALTER TABLE `pl_purchase_cert`
ADD COLUMN `ocr_result_json` mediumtext NULL COMMENT 'DeepSeek识别结果JSON' AFTER `attachment_urls`;
ALTER TABLE `pl_transport_cert`
ADD COLUMN `police_tel` varchar(50) DEFAULT NULL COMMENT '公安机关联系电话' AFTER `handler_name`,
ADD COLUMN `ocr_result_json` mediumtext NULL COMMENT 'DeepSeek识别结果JSON' AFTER `attachment_urls`;