forked from YueyuxiaoYang/travlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kna.sql
259 lines (210 loc) · 10.7 KB
/
kna.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
# Host: 127.0.0.1 (Version: 5.7.9-log)
# Date: 2015-11-05 21:43:53
# Generator: MySQL-Front 5.3 (Build 4.243)
/*!40101 SET NAMES utf8 */;
#
# Structure for table "auth_group"
#
DROP TABLE IF EXISTS `auth_group`;
CREATE TABLE `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(80) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
#
# Data for table "auth_group"
#
#
# Structure for table "auth_user"
#
DROP TABLE IF EXISTS `auth_user`;
CREATE TABLE `auth_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`password` varchar(128) NOT NULL,
`last_login` datetime DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL,
`username` varchar(30) NOT NULL,
`first_name` varchar(30) NOT NULL,
`last_name` varchar(30) NOT NULL,
`email` varchar(254) NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`date_joined` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
#
# Data for table "auth_user"
#
INSERT INTO `auth_user` VALUES (1,'pbkdf2_sha256$20000$XNxBP5ZTk8My$VThqZtpgAEaIoLhTLnT7wOvVUTEEjNvYtgnplNVJgq0=','2015-11-05 13:23:27',1,'kevin','','','kevin@gmial.com',1,1,'2015-11-04 13:17:33');
#
# Structure for table "auth_user_groups"
#
DROP TABLE IF EXISTS `auth_user_groups`;
CREATE TABLE `auth_user_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`,`group_id`),
KEY `auth_user_groups_group_id_30a071c9_fk_auth_group_id` (`group_id`),
CONSTRAINT `auth_user_groups_group_id_30a071c9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `auth_user_groups_user_id_24702650_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
#
# Data for table "auth_user_groups"
#
#
# Structure for table "django_content_type"
#
DROP TABLE IF EXISTS `django_content_type`;
CREATE TABLE `django_content_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_label` varchar(100) NOT NULL,
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_3ec8c61c_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
#
# Data for table "django_content_type"
#
INSERT INTO `django_content_type` VALUES (1,'admin','logentry'),(2,'auth','permission'),(3,'auth','group'),(4,'auth','user'),(5,'contenttypes','contenttype'),(6,'sessions','session'),(7,'share','account'),(8,'share','blog');
#
# Structure for table "django_admin_log"
#
DROP TABLE IF EXISTS `django_admin_log`;
CREATE TABLE `django_admin_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime NOT NULL,
`object_id` longtext,
`object_repr` varchar(200) NOT NULL,
`action_flag` smallint(5) unsigned NOT NULL,
`change_message` longtext NOT NULL,
`content_type_id` int(11) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `django_admin__content_type_id_5151027a_fk_django_content_type_id` (`content_type_id`),
KEY `django_admin_log_user_id_1c5f563_fk_auth_user_id` (`user_id`),
CONSTRAINT `django_admin__content_type_id_5151027a_fk_django_content_type_id` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
CONSTRAINT `django_admin_log_user_id_1c5f563_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
#
# Data for table "django_admin_log"
#
INSERT INTO `django_admin_log` VALUES (1,'2015-11-04 13:20:28','1','Account object',1,'',7,1),(2,'2015-11-04 13:20:43','1','faslkj',1,'',8,1),(3,'2015-11-04 13:20:57','1','blog1',2,'Changed Title.',8,1),(4,'2015-11-05 12:23:36','2','Account object',1,'',7,1),(5,'2015-11-05 12:26:23','2','Account object',3,'',7,1),(6,'2015-11-05 12:28:45','6','t1',3,'',8,1),(7,'2015-11-05 12:28:56','5','t1',3,'',8,1),(8,'2015-11-05 12:29:05','4','t1',3,'',8,1),(9,'2015-11-05 12:29:10','3','t1',3,'',8,1);
#
# Structure for table "auth_permission"
#
DROP TABLE IF EXISTS `auth_permission`;
CREATE TABLE `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `content_type_id` (`content_type_id`,`codename`),
CONSTRAINT `auth_permissi_content_type_id_51277a81_fk_django_content_type_id` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
#
# Data for table "auth_permission"
#
INSERT INTO `auth_permission` VALUES (1,'Can add log entry',1,'add_logentry'),(2,'Can change log entry',1,'change_logentry'),(3,'Can delete log entry',1,'delete_logentry'),(4,'Can add permission',2,'add_permission'),(5,'Can change permission',2,'change_permission'),(6,'Can delete permission',2,'delete_permission'),(7,'Can add group',3,'add_group'),(8,'Can change group',3,'change_group'),(9,'Can delete group',3,'delete_group'),(10,'Can add user',4,'add_user'),(11,'Can change user',4,'change_user'),(12,'Can delete user',4,'delete_user'),(13,'Can add content type',5,'add_contenttype'),(14,'Can change content type',5,'change_contenttype'),(15,'Can delete content type',5,'delete_contenttype'),(16,'Can add session',6,'add_session'),(17,'Can change session',6,'change_session'),(18,'Can delete session',6,'delete_session'),(19,'Can add account',7,'add_account'),(20,'Can change account',7,'change_account'),(21,'Can delete account',7,'delete_account'),(22,'Can add blog',8,'add_blog'),(23,'Can change blog',8,'change_blog'),(24,'Can delete blog',8,'delete_blog');
#
# Structure for table "auth_user_user_permissions"
#
DROP TABLE IF EXISTS `auth_user_user_permissions`;
CREATE TABLE `auth_user_user_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`,`permission_id`),
KEY `auth_user_user_perm_permission_id_3d7071f0_fk_auth_permission_id` (`permission_id`),
CONSTRAINT `auth_user_user_perm_permission_id_3d7071f0_fk_auth_permission_id` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_user_user_permissions_user_id_7cd7acb6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
#
# Data for table "auth_user_user_permissions"
#
#
# Structure for table "auth_group_permissions"
#
DROP TABLE IF EXISTS `auth_group_permissions`;
CREATE TABLE `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `group_id` (`group_id`,`permission_id`),
KEY `auth_group_permissi_permission_id_23962d04_fk_auth_permission_id` (`permission_id`),
CONSTRAINT `auth_group_permissi_permission_id_23962d04_fk_auth_permission_id` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_58c48ba9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
#
# Data for table "auth_group_permissions"
#
#
# Structure for table "django_migrations"
#
DROP TABLE IF EXISTS `django_migrations`;
CREATE TABLE `django_migrations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`applied` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
#
# Data for table "django_migrations"
#
INSERT INTO `django_migrations` VALUES (1,'contenttypes','0001_initial','2015-11-04 13:16:43'),(2,'auth','0001_initial','2015-11-04 13:16:54'),(3,'admin','0001_initial','2015-11-04 13:16:59'),(4,'contenttypes','0002_remove_content_type_name','2015-11-04 13:17:01'),(5,'auth','0002_alter_permission_name_max_length','2015-11-04 13:17:02'),(6,'auth','0003_alter_user_email_max_length','2015-11-04 13:17:03'),(7,'auth','0004_alter_user_username_opts','2015-11-04 13:17:03'),(8,'auth','0005_alter_user_last_login_null','2015-11-04 13:17:04'),(9,'auth','0006_require_contenttypes_0002','2015-11-04 13:17:05'),(10,'sessions','0001_initial','2015-11-04 13:17:05'),(11,'share','0001_initial','2015-11-04 13:17:07');
#
# Structure for table "django_session"
#
DROP TABLE IF EXISTS `django_session`;
CREATE TABLE `django_session` (
`session_key` varchar(40) NOT NULL,
`session_data` longtext NOT NULL,
`expire_date` datetime NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_de54fa62` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
#
# Data for table "django_session"
#
INSERT INTO `django_session` VALUES ('jety6ksqzingd8l9tnzoxh7cezagrb0m','Y2JlNDMyZjI3NmY2YjhjMmU3MzM0Y2M4MDYxYTdjMGFjZTA2NTJjMjp7Il9hdXRoX3VzZXJfaGFzaCI6ImYzNGEwMTkwYzEyNWQ2MmY5YTU0YzUyOTczNjM2ZWVmZjQ0MTQ1MTIiLCJfYXV0aF91c2VyX2JhY2tlbmQiOiJkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZCIsIl9hdXRoX3VzZXJfaWQiOiIxIn0=','2015-11-19 13:01:56');
#
# Structure for table "share_account"
#
DROP TABLE IF EXISTS `share_account`;
CREATE TABLE `share_account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`Username` varchar(20) NOT NULL,
`Email` varchar(254) NOT NULL,
`Travel_plan` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
#
# Data for table "share_account"
#
INSERT INTO `share_account` VALUES (1,'kevin','','GZ');
#
# Structure for table "share_blog"
#
DROP TABLE IF EXISTS `share_blog`;
CREATE TABLE `share_blog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`Title` varchar(20) NOT NULL,
`Passage` longtext,
`Tag` varchar(50) NOT NULL,
`Date_time` datetime NOT NULL,
`Username_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `share_blog_Username_id_67c7f15c_fk_share_account_id` (`Username_id`),
CONSTRAINT `share_blog_Username_id_67c7f15c_fk_share_account_id` FOREIGN KEY (`Username_id`) REFERENCES `share_account` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
#
# Data for table "share_blog"
#
INSERT INTO `share_blog` VALUES (1,'blog1','dsfjsldkfdsfjaldsjfl;ksjdflkadsjlkfjjkjdsjfkjkjkjjj','','2015-11-04 13:20:43',1),(2,'t1','kjdlaskjflasdkjflkjasdlfkdjsalfkj ','','2015-11-05 12:26:29',1),(7,'t1','kjdlaskjflasdkjflkjasdlfkdjsalfkj ','','2015-11-05 12:29:17',1),(8,'t1','kjdlaskjflasdkjflkjasdlfkdjsalfkj ','','2015-11-05 12:29:27',1),(9,'t1','kjdlaskjflasdkjflkjasdlfkdjsalfkj ','','2015-11-05 12:30:29',1),(10,'T3','once 112233 lskjdj ','','2015-11-05 12:31:32',1),(11,'fenghangoushisha','dasfjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjkasd;lkjflkjalsdfkjlksdjkfkdskklkkkkkkkkkkkkkkkk\r\njdklsflkdsjafkljdlaskfj\r\ndlasfkjkajdklsjfkldjaslfjdaslkjfldkjasl\r\ndlskafjlaksjf','','2015-11-05 13:02:32',1);