11
11
/* !40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */ ;
12
12
/* !40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */ ;
13
13
14
-
15
- -- Listage de la structure de la base pour essentialmode
16
- CREATE DATABASE IF NOT EXISTS ` essentialmode` /* !40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */ ;
17
14
USE ` essentialmode` ;
18
15
19
- -- Listage de la structure de la table essentialmode. twitter_accounts
20
16
CREATE TABLE IF NOT EXISTS ` twitter_accounts` (
21
17
` id` int (11 ) NOT NULL AUTO_INCREMENT,
22
18
` username` varchar (50 ) CHARACTER SET utf8 NOT NULL DEFAULT ' 0' ,
@@ -26,21 +22,6 @@ CREATE TABLE IF NOT EXISTS `twitter_accounts` (
26
22
UNIQUE KEY ` username` (` username` )
27
23
) ENGINE= InnoDB AUTO_INCREMENT= 38 DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_bin;
28
24
29
- -- Les données exportées n'étaient pas sélectionnées.
30
- -- Listage de la structure de la table essentialmode. twitter_likes
31
- CREATE TABLE IF NOT EXISTS ` twitter_likes` (
32
- ` id` int (11 ) NOT NULL AUTO_INCREMENT,
33
- ` authorId` int (11 ) DEFAULT NULL ,
34
- ` tweetId` int (11 ) DEFAULT NULL ,
35
- PRIMARY KEY (` id` ),
36
- KEY ` FK_twitter_likes_twitter_accounts` (` authorId` ),
37
- KEY ` FK_twitter_likes_twitter_tweets` (` tweetId` ),
38
- CONSTRAINT ` FK_twitter_likes_twitter_accounts` FOREIGN KEY (` authorId` ) REFERENCES ` twitter_accounts` (` id` ),
39
- CONSTRAINT ` FK_twitter_likes_twitter_tweets` FOREIGN KEY (` tweetId` ) REFERENCES ` twitter_tweets` (` id` ) ON DELETE CASCADE
40
- ) ENGINE= InnoDB AUTO_INCREMENT= 137 DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_bin;
41
-
42
- -- Les données exportées n'étaient pas sélectionnées.
43
- -- Listage de la structure de la table essentialmode. twitter_tweets
44
25
CREATE TABLE IF NOT EXISTS ` twitter_tweets` (
45
26
` id` int (11 ) NOT NULL AUTO_INCREMENT,
46
27
` authorId` int (11 ) NOT NULL ,
@@ -53,7 +34,17 @@ CREATE TABLE IF NOT EXISTS `twitter_tweets` (
53
34
CONSTRAINT ` FK_twitter_tweets_twitter_accounts` FOREIGN KEY (` authorId` ) REFERENCES ` twitter_accounts` (` id` )
54
35
) ENGINE= InnoDB AUTO_INCREMENT= 170 DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_unicode_ci;
55
36
56
- -- Les données exportées n'étaient pas sélectionnées.
37
+ CREATE TABLE IF NOT EXISTS ` twitter_likes` (
38
+ ` id` int (11 ) NOT NULL AUTO_INCREMENT,
39
+ ` authorId` int (11 ) DEFAULT NULL ,
40
+ ` tweetId` int (11 ) DEFAULT NULL ,
41
+ PRIMARY KEY (` id` ),
42
+ KEY ` FK_twitter_likes_twitter_accounts` (` authorId` ),
43
+ KEY ` FK_twitter_likes_twitter_tweets` (` tweetId` ),
44
+ CONSTRAINT ` FK_twitter_likes_twitter_accounts` FOREIGN KEY (` authorId` ) REFERENCES ` twitter_accounts` (` id` ),
45
+ CONSTRAINT ` FK_twitter_likes_twitter_tweets` FOREIGN KEY (` tweetId` ) REFERENCES ` twitter_tweets` (` id` ) ON DELETE CASCADE
46
+ ) ENGINE= InnoDB AUTO_INCREMENT= 137 DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_bin;
47
+
57
48
/* !40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */ ;
58
49
/* !40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */ ;
59
50
/* !40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */ ;
0 commit comments