mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-03-07 23:31:09 +08:00
@@ -713,7 +713,7 @@ create table sys_dict_type (
|
|||||||
);
|
);
|
||||||
|
|
||||||
alter table sys_dict_type add constraint pk_sys_dict_type primary key (dict_id);
|
alter table sys_dict_type add constraint pk_sys_dict_type primary key (dict_id);
|
||||||
create unique index sys_dict_type_index1 on sys_dict_type (tenant_id, dict_type);
|
create unique index sys_dict_type_index1 on sys_dict_type (dict_type);
|
||||||
|
|
||||||
comment on table sys_dict_type is '字典类型表';
|
comment on table sys_dict_type is '字典类型表';
|
||||||
comment on column sys_dict_type.dict_id is '字典主键';
|
comment on column sys_dict_type.dict_id is '字典主键';
|
||||||
|
|||||||
@@ -711,7 +711,7 @@ create table if not exists sys_dict_type
|
|||||||
constraint sys_dict_type_pk primary key (dict_id)
|
constraint sys_dict_type_pk primary key (dict_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
create unique index sys_dict_type_index1 ON sys_dict_type (tenant_id, dict_type);
|
create unique index sys_dict_type_index1 ON sys_dict_type (dict_type);
|
||||||
|
|
||||||
comment on table sys_dict_type is '字典类型表';
|
comment on table sys_dict_type is '字典类型表';
|
||||||
comment on column sys_dict_type.dict_id is '字典主键';
|
comment on column sys_dict_type.dict_id is '字典主键';
|
||||||
|
|||||||
@@ -535,7 +535,6 @@ create table sys_oper_log (
|
|||||||
create table sys_dict_type
|
create table sys_dict_type
|
||||||
(
|
(
|
||||||
dict_id bigint(20) not null comment '字典主键',
|
dict_id bigint(20) not null comment '字典主键',
|
||||||
tenant_id varchar(20) default '000000' comment '租户编号',
|
|
||||||
dict_name varchar(100) default '' comment '字典名称',
|
dict_name varchar(100) default '' comment '字典名称',
|
||||||
dict_type varchar(100) default '' comment '字典类型',
|
dict_type varchar(100) default '' comment '字典类型',
|
||||||
create_dept bigint(20) default null comment '创建部门',
|
create_dept bigint(20) default null comment '创建部门',
|
||||||
@@ -545,7 +544,7 @@ create table sys_dict_type
|
|||||||
update_time datetime comment '更新时间',
|
update_time datetime comment '更新时间',
|
||||||
remark varchar(500) default null comment '备注',
|
remark varchar(500) default null comment '备注',
|
||||||
primary key (dict_id),
|
primary key (dict_id),
|
||||||
unique (tenant_id, dict_type)
|
unique (dict_type)
|
||||||
) engine=innodb comment = '字典类型表';
|
) engine=innodb comment = '字典类型表';
|
||||||
|
|
||||||
insert into sys_dict_type values(1, '用户性别', 'sys_user_sex', 103, 1, sysdate(), null, null, '用户性别列表');
|
insert into sys_dict_type values(1, '用户性别', 'sys_user_sex', 103, 1, sysdate(), null, null, '用户性别列表');
|
||||||
|
|||||||
@@ -1014,7 +1014,7 @@ CREATE TABLE sys_dict_type
|
|||||||
ON [PRIMARY]
|
ON [PRIMARY]
|
||||||
GO
|
GO
|
||||||
|
|
||||||
CREATE NONCLUSTERED INDEX sys_dict_type_index1 ON sys_dict_type (tenant_id, dict_type)
|
CREATE NONCLUSTERED INDEX sys_dict_type_index1 ON sys_dict_type (dict_type)
|
||||||
GO
|
GO
|
||||||
|
|
||||||
EXEC sys.sp_addextendedproperty
|
EXEC sys.sp_addextendedproperty
|
||||||
|
|||||||
Reference in New Issue
Block a user