-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcreate.sql
More file actions
41 lines (34 loc) · 1.2 KB
/
create.sql
File metadata and controls
41 lines (34 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50721
Source Host : localhost
Source Database : test
Target Server Type : MySQL
Target Server Version : 50721
File Encoding : utf-8
Date: 05/21/2018 16:07:28 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `tb_user`
-- ----------------------------
DROP TABLE IF EXISTS `tb_user`;
CREATE TABLE `tb_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(30) NOT NULL COMMENT '用户名',
`password` varchar(32) DEFAULT NULL COMMENT '密码',
`role` varchar(20) DEFAULT NULL COMMENT '角色',
`sex` tinyint(4) DEFAULT NULL COMMENT '性别',
`created` datetime DEFAULT NULL COMMENT '日期',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of `tb_user`
-- ----------------------------
BEGIN;
INSERT INTO `tb_user` VALUES ('li', 'e10adc3949ba59abbe56e057f20f883e', 'ROLE_AMDIN', '1', '2018-05-21 15:25:15'), ('test', 'e10adc3949ba59abbe56e057f20f883e', 'ROLE_AMDIN', '1', '2018-05-21 14:37:37');
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;