客户关联产品开发
This commit is contained in:
@@ -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='客户-产品关联表';
|
||||
Reference in New Issue
Block a user