You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
948 B

-- ###############
-- create MySQL database , if need create, cancel the comment
-- ###############
-- create database if not exists spring_oauth default character set utf8;
-- use spring_oauth set default character = utf8;
-- ###############
-- grant privileges to spring_oauth/spring_oauth
-- ###############
-- GRANT ALL PRIVILEGES ON spring_oauth.* TO spring_oauth@localhost IDENTIFIED BY "spring_oauth";
-- ###############
-- Domain: User
-- ###############
Drop table if exists user_;
CREATE TABLE `user_` (
`id` int(11) NOT NULL auto_increment,
`guid` varchar(255) not null unique,
`create_time` datetime ,
`archived` tinyint(1) default '0',
`email` varchar(255),
`password` varchar(255) not null,
`phone` varchar(255),
`username` varchar(255) not null unique,
`default_user` tinyint(1) default '0',
`last_login_time` datetime ,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;