客户关联产品开发

This commit is contained in:
朱昊天
2026-06-18 18:19:07 +08:00
parent 27807c14eb
commit d1506d24e5
13 changed files with 717 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
CREATE TABLE IF NOT EXISTS `gear_customer_product` (
`relation_id` bigint NOT NULL COMMENT '关联ID',
`customer_id` bigint NOT NULL COMMENT '客户ID',
`product_id` bigint NOT NULL COMMENT '产品ID',
`remark` varchar(500) DEFAULT NULL COMMENT '备注',
`create_by` varchar(64) DEFAULT '' COMMENT '创建者',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) DEFAULT '' COMMENT '更新者',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`del_flag` tinyint DEFAULT 0 COMMENT '删除标志0=正常1=已删除)',
PRIMARY KEY (`relation_id`),
KEY `idx_customer_product_customer` (`customer_id`),
KEY `idx_customer_product_product` (`product_id`),
KEY `idx_customer_product_del_flag` (`del_flag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='客户-产品关联表';