docs: add pl_customer_stop_pref migration for stop logistics memory
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
4222eaa593
commit
031f1d50f6
1 file changed
+28
@@ -0,0 +1,28 @@
|
||||
-- 运输计划 · 客户装/送货物流默认记忆
|
||||
-- 设计: docs/superpowers/specs/2026-08-26-pl-customer-stop-pref-design.md
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `pl_customer_stop_pref` (
|
||||
`id` varchar(64) NOT NULL COMMENT '主键ID',
|
||||
`customer_id` varchar(64) NOT NULL COMMENT '客户ID',
|
||||
`customer_name` varchar(200) DEFAULT NULL COMMENT '客户名称',
|
||||
`stop_type` varchar(20) NOT NULL COMMENT 'load-装货 delivery-送货',
|
||||
`address` varchar(500) DEFAULT NULL COMMENT '地址',
|
||||
`lng` decimal(10,6) DEFAULT NULL COMMENT '经度',
|
||||
`lat` decimal(10,6) DEFAULT NULL COMMENT '纬度',
|
||||
`contact` varchar(200) DEFAULT NULL COMMENT '联系方式',
|
||||
`notes` varchar(500) DEFAULT NULL COMMENT '注意事项',
|
||||
`tenant_no` varchar(64) NOT NULL DEFAULT 'shanxia2.0' COMMENT '租户编号',
|
||||
`order_num` int(11) DEFAULT NULL COMMENT '排序号',
|
||||
`remark` varchar(512) DEFAULT NULL COMMENT '备注',
|
||||
`create_by` varchar(64) DEFAULT NULL COMMENT '创建人id',
|
||||
`create_dept_id` varchar(64) NOT NULL DEFAULT '' COMMENT '创建人部门ID',
|
||||
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(64) DEFAULT NULL COMMENT '更新人id',
|
||||
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
`del_flag` smallint(6) NOT NULL DEFAULT '0' COMMENT '删除标记:0-正常 1-已删除',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
UNIQUE KEY `uk_pl_cust_stop_pref` (`tenant_no`, `customer_id`, `stop_type`) USING BTREE,
|
||||
KEY `idx_tenant` (`tenant_no`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='运输计划-客户装卸货默认记忆';
|
||||
Reference in new issue
Block a user