共富商户编码修改
This commit is contained in:
1 parent
edb0ccd83f
commit
2b54d4e632
5 files changed
+163
-3
No files matched your search
@@ -0,0 +1,21 @@
|
||||
-- 商户用户绑定表
|
||||
CREATE TABLE `mall_merchant_user` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`merchant_id` bigint(20) NOT NULL COMMENT '商户ID',
|
||||
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
|
||||
`user_name` varchar(50) DEFAULT NULL COMMENT '用户名称',
|
||||
`user_phone` varchar(20) DEFAULT NULL COMMENT '用户手机号',
|
||||
`role_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '角色类型(1:管理员 2:普通用户)',
|
||||
`status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态(1:启用 0:禁用)',
|
||||
`create_by` varchar(50) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`update_by` varchar(50) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
`del_flag` char(1) DEFAULT '0' COMMENT '是否删除(0=正常 1=删除)',
|
||||
`tenant_id` bigint(20) DEFAULT NULL COMMENT '租户编号',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_merchant_user` (`merchant_id`, `user_id`, `del_flag`),
|
||||
KEY `idx_user_id` (`user_id`),
|
||||
KEY `idx_merchant_id` (`merchant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商户用户绑定表';
|
||||
|
||||
Reference in new issue
Block a user