mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 15:01:23 +08:00
Added unique to group and role
This commit is contained in:
@@ -106,7 +106,8 @@ create table `t_group`
|
|||||||
`id` bigint not null primary key,
|
`id` bigint not null primary key,
|
||||||
`name` varchar(30) not null comment '用户组名',
|
`name` varchar(30) not null comment '用户组名',
|
||||||
`deleted` bigint not null default 0,
|
`deleted` bigint not null default 0,
|
||||||
`version` int not null default 0
|
`version` int not null default 0,
|
||||||
|
constraint t_group_unique unique (name, deleted)
|
||||||
) comment '用户组';
|
) comment '用户组';
|
||||||
|
|
||||||
create table `t_user_group`
|
create table `t_user_group`
|
||||||
@@ -125,7 +126,8 @@ create table `t_role`
|
|||||||
`id` bigint not null primary key,
|
`id` bigint not null primary key,
|
||||||
`name` varchar(20) not null comment '角色名',
|
`name` varchar(20) not null comment '角色名',
|
||||||
`deleted` bigint not null default 0,
|
`deleted` bigint not null default 0,
|
||||||
`version` int not null default 0
|
`version` int not null default 0,
|
||||||
|
constraint t_role_unique unique (name, deleted)
|
||||||
) comment '角色';
|
) comment '角色';
|
||||||
|
|
||||||
create table `t_role_group`
|
create table `t_role_group`
|
||||||
|
|||||||
Reference in New Issue
Block a user