forked from Liangchengdeye/FlaskQuickStart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbigdata.sql
More file actions
71 lines (61 loc) · 2.39 KB
/
Copy pathbigdata.sql
File metadata and controls
71 lines (61 loc) · 2.39 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
Navicat MySQL Data Transfer
Source Server : 本机
Source Server Version : 50553
Source Host : localhost:3306
Source Database : bigdata
Target Server Type : MYSQL
Target Server Version : 50553
File Encoding : 65001
Date: 2019-05-28 18:06:36
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for alembic_version
-- ----------------------------
DROP TABLE IF EXISTS `alembic_version`;
CREATE TABLE `alembic_version` (
`version_num` varchar(32) NOT NULL,
PRIMARY KEY (`version_num`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of alembic_version
-- ----------------------------
INSERT INTO `alembic_version` VALUES ('d0a35a10500d');
-- ----------------------------
-- Table structure for post
-- ----------------------------
DROP TABLE IF EXISTS `post`;
CREATE TABLE `post` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`body` varchar(140) DEFAULT NULL,
`timestamp` datetime DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `ix_post_timestamp` (`timestamp`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of post
-- ----------------------------
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(64) DEFAULT NULL,
`email` varchar(120) DEFAULT NULL,
`password_hash` varchar(128) DEFAULT NULL,
`about_me` varchar(140) DEFAULT NULL,
`last_seen` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ix_user_email` (`email`),
UNIQUE KEY `ix_user_username` (`username`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('4', 'duke', 'duke@126.com', 'pbkdf2:sha256:150000$hFjd5670$92f15777a905706a6608dc1af9ec6387eb3334cea394965714d6ecccca9f1c05', null, null);
INSERT INTO `user` VALUES ('3', 'kevin', 'kevin@126.com', 'pbkdf2:sha256:150000$hvUvl85r$c7dd5806459a7e77fffce1caa14482f25286e46176e142b047cb476c634816e4', '我是python工程师', null);
INSERT INTO `user` VALUES ('5', 'myblog', 'myblog@126.com', 'pbkdf2:sha256:150000$6w92ocR2$59550173d75d4ce99f7546f9ca1318f5c7b91324ac9ff7719655e3a6e1213c92', null, '2019-05-28 09:49:29');