-
Notifications
You must be signed in to change notification settings - Fork 602
/
Copy pathexpress_quests.sql
113 lines (108 loc) · 1.81 KB
/
express_quests.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
DROP TABLE IF EXISTS movies;
CREATE TABLE movies (
id int primary key NOT NULL AUTO_INCREMENT,
title varchar(255) NOT NULL,
director varchar(255) NOT NULL,
year varchar(255) NOT NULL,
color varchar(255) NOT NULL,
duration int NOT NULL
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb3;
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 primary key 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
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
INSERT INTO
users (firstname, lastname, email, city, language)
VALUES
(
'John',
'Doe',
'Paris',
'English'
),
(
'Valeriy',
'Appius',
'Moscow',
'Russian'
),
(
'Ralf',
'Geronimo',
'New York',
'Italian'
),
(
'Maria',
'Iskandar',
'New York',
'German'
),
(
'Jane',
'Doe',
'London',
'English'
),
(
'Johanna',
'Martino',
'Milan',
'Spanish'
);