-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sql
67 lines (40 loc) · 1.21 KB
/
init.sql
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
42
43
44
45
46
47
48
49
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50128
Source Host : localhost:3306
Source Database : alex
Target Server Type : MYSQL
Target Server Version : 50128
File Encoding : 65001
Date: 2013-02-27 22:50:52
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `user`
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`userid` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(20) NOT NULL,
`userpass` varchar(100) NOT NULL,
`salt` varchar(100) NOT NULL,
`email` varchar(100),
`qq` varchar(13),
PRIMARY KEY (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `wordsbook`
-- ----------------------------
DROP TABLE IF EXISTS `wordsbook`;
CREATE TABLE `wordsbook` (
`userwordid` int(13) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`word` varchar(60) NOT NULL,
`count` int(4) NOT NULL DEFAULT 0,
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`userwordid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user
-- ----------------------------