首页 > 代码库 > Spring security在MS-SQL下的初始化脚本
Spring security在MS-SQL下的初始化脚本
-- create table users( -- username nvarchar(50) not null primary key, -- password nvarchar(50) not null, -- enabled bit not null); --create table authorities ( -- username nvarchar(50) not null, -- authority nvarchar(50) not null, -- constraint fk_authorities_users foreign key(username) references users(username)); -- create unique index ix_auth_username on authorities (username,authority); create table groups ( [id] [bigint] IDENTITY (0, 1) NOT NULL primary key, group_name nvarchar(50) not null); create table group_authorities ( group_id bigint not null, authority nvarchar(50) not null, constraint fk_group_authorities_group foreign key(group_id) references groups(id)); create table group_members ( [id] [bigint] IDENTITY (0, 1) NOT NULL primary key, username nvarchar(50) not null, group_id bigint not null, constraint fk_group_members_group foreign key(group_id) references groups(id));
Spring security在MS-SQL下的初始化脚本
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。