-
Notifications
You must be signed in to change notification settings - Fork 0
/
dump.sql
89 lines (72 loc) · 2.2 KB
/
dump.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
-- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Généré le : Mer 06 Juin 2018 à 09:18
-- Version du serveur : 5.6.33-log
-- Version de PHP : 7.0.13
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 */;
-- --------------------------------------------------------
--
-- Structure de la table `disruptions`
--
CREATE TABLE `disruptions` (
`id` int(11) NOT NULL,
`timestamp` datetime NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lineCode` varchar(255) NOT NULL,
`place` varchar(255) DEFAULT NULL,
`nature` varchar(255) NOT NULL,
`consequence` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `subscriptions`
--
CREATE TABLE `subscriptions` (
`user_id` bigint(20) UNSIGNED NOT NULL,
`line` varchar(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `user_states`
--
CREATE TABLE `user_states` (
`idUser` bigint(20) NOT NULL COMMENT 'Twitter user ID',
`state` tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
`edited_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Index pour les tables exportées
--
--
-- Index pour la table `disruptions`
--
ALTER TABLE `disruptions`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `subscriptions`
--
ALTER TABLE `subscriptions`
ADD PRIMARY KEY (`user_id`,`line`);
--
-- Index pour la table `user_states`
--
ALTER TABLE `user_states`
ADD PRIMARY KEY (`idUser`);
--
-- AUTO_INCREMENT pour les tables exportées
--
--
-- AUTO_INCREMENT pour la table `disruptions`
--
ALTER TABLE `disruptions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=980;
/*!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 */;