-
Notifications
You must be signed in to change notification settings - Fork 0
/
reset-db.sql
112 lines (112 loc) · 2.51 KB
/
reset-db.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
DROP TABLE IF EXISTS `movies`;
CREATE TABLE `movies` (
`id` int NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`director` varchar(255) NOT NULL,
`year` varchar(255) NOT NULL,
`color` tinyint(1) NOT NULL,
`duration` int NOT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
INSERT INTO
`movies` (title, director, year, color, duration)
VALUES
('Citizen Kane', 'Orson Wells', '1941', 0, 120),
(
'The Godfather',
'Francis Ford Coppola',
'1972',
1,
180
),
(
'Pulp Fiction',
'Quentin Tarantino',
'1994',
1,
180
),
(
'Apocalypse Now',
'Francis Ford Coppola',
'1979',
1,
150
),
(
'2001 a space odyssey',
'Stanley Kubrick',
'1968',
1,
160
),
(
'The Dark Knight',
'Christopher Nolan',
'2008',
1,
150
);
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int NOT NULL AUTO_INCREMENT,
`firstname` varchar(255) NOT NULL,
`lastname` varchar(255) NOT NULL,
`email` varchar(255) UNIQUE NOT NULL,
`city` varchar(255) DEFAULT NULL,
`language` varchar(255) DEFAULT NULL,
`hashedPassword` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB AUTO_INCREMENT = 7 DEFAULT CHARSET = utf8;
INSERT INTO
`users`
VALUES
(
1,
'John',
'Doe',
'john.doe@example.com',
'Paris',
'English',
"$argon2id$v=19$m=16,t=2,p=1$emVmZXpmemZlemVmZWR6ZXplZg$rqZkhxu5YbqCGHPNrjJZpQ"
),(
2,
'Valeriy',
'Appius',
'valeriy.ppius@example.com',
'Moscow',
'Russian',
'$argon2id$v=19$m=16,t=2,p=1$emVmemVmemZlemZ6ZnpmZQ$eSetR6KPUNAGW+q+wDadcw'
),(
3,
'Ralf',
'Geronimo',
'ralf.geronimo@example.com',
'New York',
'Italian',
'$argon2id$v=19$m=16,t=2,p=1$emVmemVmemZlemZ6ZnpmZXphZGF6ZGQ$a0bg5DZB6H6v3jjQC81DXg'
),(
4,
'Maria',
'Iskandar',
'maria.iskandar@example.com',
'New York',
'German',
'$argon2id$v=19$m=16,t=2,p=1$emVmemVmemZlenplZHpkZnpmemZlemFkYXpkZA$V1qAnJDyMuuWG7g9yoGYXA'
),(
5,
'Jane',
'Doe',
'jane.doe@example.com',
'London',
'English',
'$argon2id$v=19$m=16,t=2,p=1$emVmemVmemZlenplZHpkZGZ6ZnpmZXphZGF6ZGQ$VCzq45PL9t8khtc44Kk5iw'
),(
6,
'Johanna',
'Martino',
'johanna.martino@example.com',
'Milan',
'Spanish',
'$argon2id$v=19$m=16,t=2,p=1$emVmemVmemVmemZlenplZHpkZGZ6ZnpmZXphZGF6ZGQ$UKaGZ9hGFn/S5SBQDMe/Uw'
);