-
Notifications
You must be signed in to change notification settings - Fork 0
/
blogCreator.sql
513 lines (440 loc) · 21.4 KB
/
blogCreator.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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
-- phpMyAdmin SQL Dump
-- version 4.4.13.1deb1
-- http://www.phpmyadmin.net
--
-- Client : localhost
-- Généré le : Mar 27 Décembre 2016 à 10:40
-- Version du serveur : 5.6.31-0ubuntu0.15.10.1
-- Version de PHP : 5.6.11-1ubuntu3.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de données : `blogCreator`
--
CREATE DATABASE IF NOT EXISTS `blogCreator` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `blogCreator`;
-- --------------------------------------------------------
--
-- Structure de la table `articles`
--
CREATE TABLE IF NOT EXISTS `articles` (
`id` int(11) NOT NULL,
`id_blog` int(11) NOT NULL,
`id_category` int(11) NOT NULL,
`id_author` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`chapo` varchar(255) NOT NULL,
`content` text NOT NULL,
`updated_at` datetime NOT NULL,
`created_at` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `articles`
--
INSERT INTO `articles` (`id`, `id_blog`, `id_category`, `id_author`, `title`, `chapo`, `content`, `updated_at`, `created_at`) VALUES
(2, 1, 2, 2, 'Second article', 'Not another cool article :(', 'Hola hola', '2016-12-12 17:45:22', '2016-12-12 15:29:37'),
(3, 12, 1, 2, 'Much title!', 'such chapo!', 'WOW WOW!', '2016-12-13 10:57:24', '2016-12-12 16:32:32'),
(10, 12, 3, 2, 'Cate', 'Not your usual cat', 'image transfer test', '2016-12-14 10:24:38', '2016-12-14 10:24:38'),
(11, 13, 3, 3, 'Article', 'Hat', ':|', '2016-12-14 11:23:06', '2016-12-14 11:23:06'),
(13, 13, 2, 3, 'Article', 'Hat', ':| other article', '2016-12-23 16:05:56', '2016-12-14 15:23:06'),
(23, 1, 1, 2, 'test', 'mime type', 'qsd', '2016-12-14 16:05:16', '2016-12-14 16:05:16'),
(24, 1, 1, 2, 'Files ', 'download file', 'try it out', '2016-12-16 14:45:08', '2016-12-14 16:19:21'),
(32, 1, 2, 2, 'notif !', 'dsq', 'notfi folllower', '2016-12-16 17:24:05', '2016-12-15 14:13:05'),
(35, 15, 3, 2, 'crash', 'new category', 'dsqdq', '2016-12-16 17:24:23', '2016-12-16 17:08:37'),
(36, 16, 3, 5, 'Welcome :)', 'Salusava ?', 'Yop', '2016-12-17 00:11:57', '2016-12-17 00:11:57'),
(37, 1, 1, 2, 'pieces jontes', '.', '..', '2016-12-23 16:04:01', '2016-12-23 16:04:01');
-- --------------------------------------------------------
--
-- Structure de la table `blogs`
--
CREATE TABLE IF NOT EXISTS `blogs` (
`id` int(11) NOT NULL,
`id_author` int(11) NOT NULL,
`description` text NOT NULL,
`title` varchar(255) NOT NULL,
`banner` varchar(255) NOT NULL,
`updated_at` datetime NOT NULL,
`created_at` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `blogs`
--
INSERT INTO `blogs` (`id`, `id_author`, `description`, `title`, `banner`, `updated_at`, `created_at`) VALUES
(1, 2, 'Not another blog', 'My blog', 'Mirror.jpg', '2016-12-15 14:56:54', '2016-12-09 14:47:41'),
(12, 2, 'Another blog', '2nd blog', 'little_ball_of_fur_by_rebecca_wientzek.jpg', '2016-12-09 15:15:27', '2016-12-09 15:15:27'),
(13, 3, 'hmm', 'Timezone test', 'Whispy_Tails.jpg', '2016-12-09 16:17:20', '2016-12-09 16:17:20'),
(14, 6, 'demo', 'test', 'Road.jpg', '2016-12-23 16:01:53', '2016-12-23 16:01:53');
-- --------------------------------------------------------
--
-- Structure de la table `categories`
--
CREATE TABLE IF NOT EXISTS `categories` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`updated_at` datetime NOT NULL,
`created_at` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `categories`
--
INSERT INTO `categories` (`id`, `name`, `updated_at`, `created_at`) VALUES
(1, 'Jeux videos', '2016-12-13 17:50:51', '0000-00-00 00:00:00'),
(2, 'Sport', '2016-12-12 00:00:00', '2016-12-12 00:00:00'),
(3, 'Nature', '2016-12-15 14:38:14', '2016-12-13 17:42:57'),
(5, 'Science', '2016-12-13 17:47:19', '2016-12-13 17:47:19');
-- --------------------------------------------------------
--
-- Structure de la table `comments`
--
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(11) NOT NULL,
`id_article` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`content` text NOT NULL,
`updated_at` datetime NOT NULL,
`created_at` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `comments`
--
INSERT INTO `comments` (`id`, `id_article`, `id_user`, `content`, `updated_at`, `created_at`) VALUES
(1, 1, 2, 'hello', '2016-12-12 16:16:55', '2016-12-12 16:16:55'),
(2, 1, 2, 'Such article much title wow', '2016-12-12 16:18:47', '2016-12-12 16:18:47'),
(6, 3, 2, 'wow', '2016-12-12 17:01:52', '2016-12-12 17:01:52'),
(12, 2, 2, 'nice article', '2016-12-13 10:26:03', '2016-12-13 10:26:03'),
(13, 5, 2, '3 test', '2016-12-13 16:16:57', '2016-12-13 16:16:57'),
(14, 3, 2, 'shared article comment test', '2016-12-13 16:17:08', '2016-12-13 16:17:08'),
(15, 10, 2, 'Much images !', '2016-12-14 11:01:00', '2016-12-14 11:01:00'),
(16, 3, 2, 'comment from wall', '2016-12-14 11:16:08', '2016-12-14 11:16:08'),
(17, 5, 2, 'comment from article page', '2016-12-15 10:52:44', '2016-12-15 10:52:44'),
(21, 24, 2, 'test notif on own article', '2016-12-15 13:49:20', '2016-12-15 13:49:20'),
(22, 12, 2, 'notif comment on other people''s article', '2016-12-15 13:50:04', '2016-12-15 13:50:04'),
(23, 24, 2, 'way to pass this as your own :(', '2016-12-15 16:58:04', '2016-12-15 16:58:04'),
(24, 13, 5, 'Okay', '2016-12-17 00:03:22', '2016-12-17 00:03:22'),
(26, 36, 5, '<script>alert(''lol'')</script>', '2016-12-17 00:25:12', '2016-12-17 00:25:12'),
(27, 37, 2, 'hello', '2016-12-23 16:04:38', '2016-12-23 16:04:38');
-- --------------------------------------------------------
--
-- Structure de la table `friends`
--
CREATE TABLE IF NOT EXISTS `friends` (
`id` int(11) NOT NULL,
`id_user1` int(11) NOT NULL,
`id_user2` int(11) NOT NULL,
`accepted` tinyint(1) DEFAULT NULL,
`updated_at` datetime NOT NULL,
`created_at` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `friends`
--
INSERT INTO `friends` (`id`, `id_user1`, `id_user2`, `accepted`, `updated_at`, `created_at`) VALUES
(13, 2, 3, NULL, '2016-12-13 10:55:15', '2016-12-13 10:55:15'),
(19, 4, 3, NULL, '2016-12-15 11:38:55', '2016-12-15 11:38:55'),
(23, 5, 3, NULL, '2016-12-17 00:08:08', '2016-12-17 00:08:08'),
(24, 2, 4, NULL, '2016-12-22 16:16:15', '2016-12-22 16:16:15');
-- --------------------------------------------------------
--
-- Structure de la table `images`
--
CREATE TABLE IF NOT EXISTS `images` (
`id` int(11) NOT NULL,
`id_article` int(11) NOT NULL,
`image` text NOT NULL,
`mime` varchar(255) DEFAULT NULL,
`updated_at` datetime NOT NULL,
`created_at` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `images`
--
INSERT INTO `images` (`id`, `id_article`, `image`, `mime`, `updated_at`, `created_at`) VALUES
(2, 10, 'little_ball_of_fur_by_rebecca_wientzek.jpg', 'image/png', '2016-12-14 10:24:39', '2016-12-14 10:24:39'),
(3, 3, 'Sandstone.jpg', 'image/png', '2016-12-14 10:49:59', '2016-12-14 10:49:59'),
(5, 11, 'kronach_leuchtet_2014_by_brian_fox.jpg', 'image/png', '2016-12-14 11:23:06', '2016-12-14 11:23:06'),
(6, 12, 'FootFall.png', 'image/png', '2016-12-14 11:48:24', '2016-12-14 11:48:24'),
(7, 2, 'Terraform-green.jpg', 'image/png', '2016-12-14 16:00:19', '2016-12-14 16:00:19'),
(8, 23, 'FootFall.png', 'image/png', '2016-12-14 16:05:16', '2016-12-14 16:05:16'),
(9, 23, 'Flowerbed.jpg', 'image/png', '2016-12-14 16:05:16', '2016-12-14 16:05:16'),
(12, 24, 'test-angularjs.pdf', 'application/pdf', '2016-12-14 16:22:42', '2016-12-14 16:22:42'),
(13, 32, 'light_trails_by_giridhar_mahadevan.jpg', 'image/jpeg', '2016-12-15 14:13:05', '2016-12-15 14:13:05'),
(14, 12, 'This video is private..png', 'image/png', '2016-12-15 14:14:27', '2016-12-15 14:14:27'),
(15, 24, 'Waves.jpg', 'image/jpeg', '2016-12-16 14:44:34', '2016-12-16 14:44:34'),
(16, 36, 'Sandstone.jpg', 'image/jpeg', '2016-12-17 00:11:57', '2016-12-17 00:11:57'),
(17, 37, 'Whispy_Tails.jpg', 'image/jpeg', '2016-12-23 16:04:01', '2016-12-23 16:04:01'),
(18, 37, 'Waves.jpg', 'image/jpeg', '2016-12-23 16:04:01', '2016-12-23 16:04:01'),
(19, 37, 'This video is private..png', 'image/png', '2016-12-23 16:04:01', '2016-12-23 16:04:01'),
(20, 37, 'Terraform-green.jpg', 'image/jpeg', '2016-12-23 16:04:01', '2016-12-23 16:04:01');
-- --------------------------------------------------------
--
-- Structure de la table `messages`
--
CREATE TABLE IF NOT EXISTS `messages` (
`id` int(11) NOT NULL,
`id_sender` int(11) NOT NULL,
`id_recipient` int(11) NOT NULL,
`text` text NOT NULL,
`seen` tinyint(1) DEFAULT NULL,
`sender_deleted` tinyint(1) DEFAULT NULL,
`recipient_deleted` tinyint(1) DEFAULT NULL,
`updated_at` datetime NOT NULL,
`created_at` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `messages`
--
INSERT INTO `messages` (`id`, `id_sender`, `id_recipient`, `text`, `seen`, `sender_deleted`, `recipient_deleted`, `updated_at`, `created_at`) VALUES
(1, 2, 3, 'message', 1, NULL, NULL, '2016-12-14 11:35:28', '2016-12-09 17:37:02'),
(2, 3, 2, 'sqdsqqs', 1, NULL, 1, '2016-12-14 11:40:07', '2016-12-09 21:22:11'),
(4, 4, 2, 'sup?', 1, NULL, 1, '2016-12-14 11:40:13', '2016-12-11 13:14:13'),
(5, 2, 4, 'sup?', 1, NULL, NULL, '2016-12-15 11:42:20', '2016-12-11 13:14:31'),
(6, 3, 2, 's''up?', 1, NULL, 1, '2016-12-16 10:30:50', '2016-12-14 11:23:24'),
(7, 3, 2, 'message unseen test', 1, NULL, 1, '2016-12-15 14:22:25', '2016-12-14 11:35:37'),
(8, 2, 4, 'check your notifs :D', 1, NULL, 1, '2016-12-15 11:42:24', '2016-12-15 11:41:52'),
(9, 2, 4, 'check your notifs :D', 1, NULL, 1, '2016-12-15 18:24:00', '2016-12-15 11:42:05'),
(10, 2, 2, 'hi', 1, 1, 1, '2016-12-16 10:32:25', '2016-12-15 14:31:07'),
(11, 2, 2, 'check', 1, 1, 1, '2016-12-16 10:32:18', '2016-12-16 10:22:35'),
(12, 2, 2, 'hello\r\n', 1, NULL, NULL, '2016-12-16 10:39:52', '2016-12-16 10:39:50'),
(13, 2, 2, 's''up?', 1, NULL, NULL, '2016-12-16 17:28:03', '2016-12-16 17:28:00'),
(14, 5, 2, 'Hi', 1, NULL, NULL, '2016-12-17 14:25:08', '2016-12-17 00:07:50'),
(15, 3, 2, 'yo', 1, NULL, 1, '2016-12-19 11:05:26', '2016-12-17 00:29:20'),
(16, 3, 3, 'yo', 1, NULL, NULL, '2016-12-17 00:29:54', '2016-12-17 00:29:50'),
(17, 2, 2, 'send notif', 1, NULL, NULL, '2016-12-19 14:32:24', '2016-12-19 14:32:21'),
(18, 2, 3, 'hello', 1, NULL, NULL, '2016-12-23 16:05:08', '2016-12-23 16:04:58');
-- --------------------------------------------------------
--
-- Structure de la table `notifications`
--
CREATE TABLE IF NOT EXISTS `notifications` (
`id` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`url` text NOT NULL,
`content` text NOT NULL,
`icon` varchar(255) NOT NULL,
`seen` tinyint(1) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `notifications`
--
INSERT INTO `notifications` (`id`, `id_user`, `url`, `content`, `icon`, `seen`, `created_at`, `updated_at`) VALUES
(4, 4, '/friend/list', 'Jérome Crété added you as friend', 'user', 1, '2016-12-15 11:34:55', '2016-12-15 11:38:44'),
(5, 3, '/friend/list', 'Olivier added you as friend', 'user', 1, '2016-12-15 11:38:55', '2016-12-15 11:39:39'),
(6, 4, '/friend/list', 'Jérome Crété added you as friend', 'user', 1, '2016-12-15 11:41:44', '2016-12-15 11:48:30'),
(7, 4, '/message/list', 'New message from Jérome Crété', 'envelope', 1, '2016-12-15 11:42:05', '2016-12-15 11:48:30'),
(8, 2, '/friend/list', 'Olivier added you as friend', 'user', 1, '2016-12-15 11:48:52', '2016-12-15 11:51:49'),
(9, 4, '/profile/2', 'Jérome Crété is now following your blog oli''s blog', 'share', 1, '2016-12-15 12:08:12', '2016-12-15 13:50:24'),
(10, 4, 'blog/14/read/12', 'Jérome Crété commented on your article oli''s first article', 'comment', 1, '2016-12-15 12:13:09', '2016-12-15 13:50:24'),
(12, 2, 'blog/14', 'Olivier shared your article file on their blog oli''s blog', 'retweet', 1, '2016-12-15 12:21:46', '2016-12-15 12:24:51'),
(13, 2, '14', 'Olivier shared your article file on their blog oli''s blog', 'retweet', 1, '2016-12-15 12:22:39', '2016-12-15 12:35:21'),
(14, 2, 'blog/1/read/24', 'Jérome Crété commented on your article file', 'comment', 1, '2016-12-15 12:36:18', '2016-12-15 12:36:27'),
(15, 4, 'blog/14/read/12', 'Jérome Crété commented on your article oli''s first article', 'comment', 1, '2016-12-15 13:50:04', '2016-12-15 13:50:24'),
(16, 4, 'blog/1/read/31', 'New article on blog My blog', 'file-text-o', 1, '2016-12-15 14:12:29', '2016-12-15 14:13:23'),
(17, 3, 'blog/1/read/31', 'New article on blog My blog', 'file-text-o', 1, '2016-12-15 14:12:29', '2016-12-15 15:21:57'),
(18, 4, 'blog/1/read/32', 'New article on blog My blog', 'file-text-o', 1, '2016-12-15 14:13:05', '2016-12-15 14:13:23'),
(19, 3, 'blog/1/read/32', 'New article on blog My blog', 'file-text-o', 1, '2016-12-15 14:13:05', '2016-12-15 15:21:57'),
(20, 2, '/message/list', 'New message from Jérome Crété', 'envelope', 1, '2016-12-15 14:31:07', '2016-12-15 14:31:22'),
(21, 4, '15', 'Jérôme Crété shared your article oli''s first article on their blog new blog', 'retweet', 1, '2016-12-15 17:38:07', '2016-12-16 17:14:24'),
(22, 3, '15', 'Jérôme Crété shared your article Article on their blog new blog', 'retweet', 1, '2016-12-15 17:44:29', '2016-12-17 00:28:53'),
(23, 2, '/message/list', 'New message from Jérôme Crété', 'envelope', 1, '2016-12-16 10:22:35', '2016-12-16 10:22:44'),
(24, 2, '/message/list', 'New message from Jérôme Crété', 'envelope', 1, '2016-12-16 10:39:50', '2016-12-16 10:40:24'),
(25, 2, 'blog/14/read/12', 'Olivier has deleted your comment on oli''s first article', 'times', 1, '2016-12-16 12:15:37', '2016-12-16 12:16:39'),
(26, 4, '/friend/list', 'Jérôme Crété added you as friend', 'user', 1, '2016-12-16 15:07:23', '2016-12-16 17:14:24'),
(27, 3, '/profile/2', 'Jérôme Crété is now following your blog Timezone test', 'share', 1, '2016-12-16 16:25:40', '2016-12-17 00:28:53'),
(28, 2, '/profile/4', 'Olivier is now following your blog new blog', 'share', 1, '2016-12-16 17:09:59', '2016-12-16 17:20:47'),
(29, 2, '/message/list', 'New message from Jérôme Crété', 'envelope', 1, '2016-12-16 17:28:00', '2016-12-16 17:28:09'),
(30, 3, 'blog/13/read/13', 'Oli8 commented on your article Article', 'comment', 1, '2016-12-17 00:03:22', '2016-12-17 00:28:53'),
(31, 3, '/profile/5', 'Oli8 is now following your blog Timezone test', 'share', 1, '2016-12-17 00:04:09', '2016-12-17 00:28:53'),
(32, 2, '/message/list', 'New message from Oli8', 'envelope', 1, '2016-12-17 00:07:50', '2016-12-17 14:25:49'),
(33, 3, '/friend/list', 'Oli8 added you as friend', 'user', 1, '2016-12-17 00:08:08', '2016-12-17 00:28:54'),
(34, 2, '16', 'Oli8 shared your article crash on their blog Mon blog :)', 'retweet', 1, '2016-12-17 00:13:10', '2016-12-17 14:25:49'),
(35, 2, '/message/list', 'New message from jer', 'envelope', 1, '2016-12-17 00:29:20', '2016-12-17 14:25:49'),
(36, 3, '/message/list', 'New message from jer', 'envelope', 1, '2016-12-17 00:29:50', '2016-12-17 00:30:03'),
(37, 4, '/friend/list', 'Jérôme Crété added you as friend', 'user', NULL, '2016-12-22 16:16:15', '2016-12-22 16:16:15'),
(38, 4, 'blog/1/read/37', 'New article on blog My blog', 'file-text-o', NULL, '2016-12-23 16:04:01', '2016-12-23 16:04:01'),
(40, 3, '1', 'Jérôme Crété shared your article Article on their blog My blog', 'retweet', NULL, '2016-12-23 16:07:05', '2016-12-23 16:07:05');
-- --------------------------------------------------------
--
-- Structure de la table `sharedArticles`
--
CREATE TABLE IF NOT EXISTS `sharedArticles` (
`id` int(11) NOT NULL,
`id_article` int(11) NOT NULL,
`id_blog` int(11) NOT NULL,
`updated_at` datetime NOT NULL,
`created_at` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `sharedArticles`
--
INSERT INTO `sharedArticles` (`id`, `id_article`, `id_blog`, `updated_at`, `created_at`) VALUES
(4, 12, 1, '2016-12-14 13:26:50', '2016-12-14 13:26:50'),
(5, 12, 12, '2016-12-14 13:31:59', '2016-12-14 13:31:59'),
(6, 13, 12, '2016-12-14 15:56:39', '2016-12-14 15:56:39'),
(10, 12, 15, '2016-12-15 17:38:07', '2016-12-15 17:38:07'),
(11, 13, 15, '2016-12-15 17:44:29', '2016-12-15 17:44:29'),
(12, 35, 16, '2016-12-17 00:13:10', '2016-12-17 00:13:10'),
(13, 13, 1, '2016-12-23 16:07:05', '2016-12-23 16:07:05');
-- --------------------------------------------------------
--
-- Structure de la table `sharedBlogs`
--
CREATE TABLE IF NOT EXISTS `sharedBlogs` (
`id` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`id_blog` int(11) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `sharedBlogs`
--
INSERT INTO `sharedBlogs` (`id`, `id_user`, `id_blog`, `created_at`, `updated_at`) VALUES
(22, 4, 1, '2016-12-14 11:55:55', '2016-12-14 11:55:55'),
(27, 2, 13, '2016-12-16 16:25:40', '2016-12-16 16:25:40');
-- --------------------------------------------------------
--
-- Structure de la table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`remember_token` varchar(255) DEFAULT NULL,
`updated_at` datetime NOT NULL,
`created_at` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `remember_token`, `updated_at`, `created_at`) VALUES
(2, 'Jérôme Crété', '[email protected]', '$2y$10$abQECalpBB1EINlwxlyx6uoxk4SnU8Ln.5FIzptx5O4bCSXPr3zjW', 'D0y3i9dlLmniCRydX6mls0qetXi0LmekoxgVk3lqeAvirrYniB41PMtnZKFt', '2016-12-23 16:22:06', '2016-12-09 13:07:19'),
(3, 'jer', '[email protected]', '$2y$10$y6bdCwIhYUoc0/C5pDMnzOpGZ3Ov7Zkr9I4cgOZ/RPgdp0jq8/rjy', 'qp4xadbBhK3EA8s68I0mDi4G0BvIthle1dFOToDbvRdOZOEnhd6BClTKWudW', '2016-12-23 16:06:15', '2016-12-09 13:43:25'),
(4, 'Olivier', '[email protected]', '$2y$10$cKCDx3.v0OJ5BRViJceDS.aqYS.K0GA/qwfSZm.yfuJis39CxEdkW', 'za57nVzQNeVEI5OxbRwxTslSXiNeFcBcL8nC7dvylYkOEMDbU4HcLpCp0wNg', '2016-12-17 15:02:27', '2016-12-11 00:23:04'),
(5, 'Oli8', '[email protected]', '$2y$10$mK18Cifab5nBaautIDxxpeeWDGp5YLnAc0lvOosYkvmITnSXw8F/O', 'PgkQcL5PqrFlmRkOr4ikSJNiAuRertOIgdn14euqTmHm2d9mpRPcb4ikiZHL', '2016-12-17 14:51:10', '2016-12-17 00:01:27'),
(6, 'demo', '[email protected]', '$2y$10$tvFnEEKIJtrz1goWJHvKZex5M4tSH1KycUTp2XjRArW3s5Wc1da.y', '8LozH6ffk9bRpxCIAOh5sDM9YTY6z1rdRobyje2cXgxCkgN1xQNPXnbvksUT', '2016-12-23 16:02:56', '2016-12-23 16:00:11');
--
-- Index pour les tables exportées
--
--
-- Index pour la table `articles`
--
ALTER TABLE `articles`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `blogs`
--
ALTER TABLE `blogs`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `comments`
--
ALTER TABLE `comments`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `friends`
--
ALTER TABLE `friends`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `images`
--
ALTER TABLE `images`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `messages`
--
ALTER TABLE `messages`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `notifications`
--
ALTER TABLE `notifications`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `sharedArticles`
--
ALTER TABLE `sharedArticles`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `sharedBlogs`
--
ALTER TABLE `sharedBlogs`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT pour les tables exportées
--
--
-- AUTO_INCREMENT pour la table `articles`
--
ALTER TABLE `articles`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=38;
--
-- AUTO_INCREMENT pour la table `blogs`
--
ALTER TABLE `blogs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT pour la table `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT pour la table `comments`
--
ALTER TABLE `comments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=28;
--
-- AUTO_INCREMENT pour la table `friends`
--
ALTER TABLE `friends`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT pour la table `images`
--
ALTER TABLE `images`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT pour la table `messages`
--
ALTER TABLE `messages`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT pour la table `notifications`
--
ALTER TABLE `notifications`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=41;
--
-- AUTO_INCREMENT pour la table `sharedArticles`
--
ALTER TABLE `sharedArticles`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT pour la table `sharedBlogs`
--
ALTER TABLE `sharedBlogs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=28;
--
-- AUTO_INCREMENT pour la table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;