码迷,mamicode.com
首页 > 数据库 > 详细

Spring security在MS-SQL下的初始化脚本

时间:2017-06-30 18:56:10      阅读:281      评论:0      收藏:0      [点我收藏+]

标签:blog   nvarchar   初始化   arc   entity   char   uri   har   pre   

 -- 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下的初始化脚本

标签:blog   nvarchar   初始化   arc   entity   char   uri   har   pre   

原文地址:http://www.cnblogs.com/dhcn/p/7100137.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!