1 | insert into users(user_id,user_username,user_password,user_phone_number,user_name,user_surname,user_email,user_role)
|
---|
2 | values (12342,'darko258121','darko12345#','071-132-882','Darko','Popovski','darkopopovski@yahoo.com','Employee'),
|
---|
3 | (21231,'nikola.sofeski','nikola1234.','070-430-911','Nikola','Sofeski','sofeskin@hotmail.com','Employee'),
|
---|
4 | (1208,'iva12','abvgd9542','03720-12-24-48','Iva','Naskovska','iva.nask12@yahoo.com','Employee'),
|
---|
5 | (32423,'johnwood13212','johhnywoodie111','202-555-0188','John','Wood','johnwood222@gmail.com','Client'),
|
---|
6 | (4123,'erich12','qwerty666','03731-41-64-54 ','Erich','Schnell','erichschnell2@gmail.com','Client'),
|
---|
7 | (23013,'JohnnyB','ahevne123','072-312-274','Johnny','Bravo','bravo.jon@gmail.com','Client');
|
---|
8 |
|
---|
9 |
|
---|
10 | ------------------------------------------------------
|
---|
11 |
|
---|
12 | insert into employee(employee_id,user_id)
|
---|
13 | values (1,12342),
|
---|
14 | (2,21231),
|
---|
15 | (3,1208);
|
---|
16 |
|
---|
17 | ------------------------------------------------------
|
---|
18 |
|
---|
19 | insert into client(client_id,user_id)
|
---|
20 | values (1,32423),
|
---|
21 | (2,4123),
|
---|
22 | (3,23013);
|
---|
23 |
|
---|
24 | ------------------------------------------------------
|
---|
25 |
|
---|
26 | insert into firm(firm_id,firm_city,firm_adress,firm_name)
|
---|
27 | values (1,'Skopje','Partizanski Odredi','Skopje Cinema'),
|
---|
28 | (2,'Ohrid','Goce Delcev','Lake Cinema'),
|
---|
29 | (3,'Prilep','Lece Koteski','PrilepCinema'),
|
---|
30 | (4,'Bitola','Blagojche Siljanovski','BTCinema');
|
---|
31 |
|
---|
32 |
|
---|
33 |
|
---|
34 | ------------------------------------------------------
|
---|
35 |
|
---|
36 | insert into auditorium(auditorium_id,auditorium_name,auditorium_capacity,firm_id)
|
---|
37 | values (1,'Sala-1',50,1),
|
---|
38 | (2,'Sala-2',35,2),
|
---|
39 | (3,'Sala-3',50,3),
|
---|
40 | (4,'Sala-4',40,4);
|
---|
41 |
|
---|
42 | ------------------------------------------------------
|
---|
43 |
|
---|
44 | insert into genre(genre_id,genre_name)
|
---|
45 | values (321,'Western'),
|
---|
46 | (211,'Action'),
|
---|
47 | (121,'Fantasy'),
|
---|
48 | (11,'SCI-FI');
|
---|
49 |
|
---|
50 | ------------------------------------------------------
|
---|
51 |
|
---|
52 | insert into movie(movie_id,movie_name,movie_age_category,movie_production,movie_film_director,movie_cast,movie_time_duration)
|
---|
53 | values (132423,'The Good, the Bad and the Ugly','12+','Produzioni Europee Associate','Sergio Leone','Clint Eastwood','2h 58m'),
|
---|
54 | (21232,'Terminator 3: Rise of the Machines','15+','Intermedia, C2 Pictures','Jonathan Mostow','Arnold Schwarzenegger,Kristanna Loken','1h 49m'),
|
---|
55 | (34433423,'The Matrix','16+','Warner Bros', 'Lana Wachowski,Lilly Wachowski','Keanu Reeves,Laurence Fishburne,Carrie-Anne Moss','2h 26m'),
|
---|
56 | (454334,'Interstellar','12+','Paramount Pictures','Christopher Nolan','Matthew McConaughey,John Lithgow,Ellen Burstyn','2h 28m');
|
---|
57 |
|
---|
58 | ------------------------------------------------------
|
---|
59 |
|
---|
60 | insert into works_in(user_id,firm_id,works_from,works_to)
|
---|
61 | values (12342,1,'2021-11-10',now()),
|
---|
62 | (21231,2,'2020-05-12',now()),
|
---|
63 | (1208,3,'2021-02-11',now()),
|
---|
64 | (21231,4,'2021-07-08',now());
|
---|
65 |
|
---|
66 | ------------------------------------------------------
|
---|
67 |
|
---|
68 | insert into movieprojection(projection_id,projection_movie_start,projection_movie_end,projection_screening_date,projection_type,projection_price,movie_id)
|
---|
69 | values (12732,'16h:00min','18h:58m','2021-12-17','2D',350,132423),
|
---|
70 | (182736,'19h:00min','21h:26min','2021-12-23','2D',280,21232),
|
---|
71 | (61235,'15h:00min','17h:28min','2021-12-20','3D',380,34433423),
|
---|
72 | (16732,'19h:00min','21h:26m','2021-12-17','2D',450,454334);
|
---|
73 |
|
---|
74 | ------------------------------------------------------
|
---|
75 |
|
---|
76 | insert into payment_type(payment_type_id,payment_type)
|
---|
77 | values (12366,'Ticket-Office'),
|
---|
78 | (12367,'Online');
|
---|
79 |
|
---|
80 | ------------------------------------------------------
|
---|
81 |
|
---|
82 | insert into seat(seat_id,auditorium_id,seat_number)
|
---|
83 | values (1,1,1),
|
---|
84 | (2,1,2),
|
---|
85 | (3,1,3),
|
---|
86 | (4,1,4),
|
---|
87 | (5,1,5),
|
---|
88 | (6,1,6),
|
---|
89 | (7,1,7),
|
---|
90 | (8,1,8),
|
---|
91 | (9,1,9),
|
---|
92 | (10,1,10),
|
---|
93 | (11,1,11),
|
---|
94 | (12,1,12),
|
---|
95 | (13,1,13),
|
---|
96 | (14,1,14),
|
---|
97 | (15,1,15),
|
---|
98 | (16,1,16),
|
---|
99 | (17,1,17),
|
---|
100 | (18,1,18),
|
---|
101 | (19,1,19),
|
---|
102 | (20,1,20),
|
---|
103 | (21,1,21),
|
---|
104 | (22,1,22),
|
---|
105 | (23,1,23),
|
---|
106 | (24,1,24),
|
---|
107 | (25,1,25),
|
---|
108 | (26,1,26),
|
---|
109 | (27,1,27),
|
---|
110 | (28,1,28),
|
---|
111 | (29,1,29),
|
---|
112 | (30,1,30),
|
---|
113 | (31,1,31),
|
---|
114 | (32,1,32),
|
---|
115 | (33,1,33),
|
---|
116 | (34,1,34),
|
---|
117 | (35,1,35),
|
---|
118 | (36,1,36),
|
---|
119 | (37,1,37),
|
---|
120 | (38,1,38),
|
---|
121 | (39,1,39),
|
---|
122 | (40,1,40),
|
---|
123 | (41,1,41),
|
---|
124 | (42,1,42),
|
---|
125 | (43,1,43),
|
---|
126 | (44,1,44),
|
---|
127 | (45,1,45),
|
---|
128 | (46,1,46),
|
---|
129 | (47,1,47),
|
---|
130 | (48,1,48),
|
---|
131 | (49,1,49),
|
---|
132 | (1,2,1),
|
---|
133 | (2,2,2),
|
---|
134 | (3,2,3),
|
---|
135 | (4,2,4),
|
---|
136 | (5,2,5),
|
---|
137 | (6,2,6),
|
---|
138 | (7,2,7),
|
---|
139 | (8,2,8),
|
---|
140 | (9,2,9),
|
---|
141 | (10,2,10),
|
---|
142 | (11,2,11),
|
---|
143 | (12,2,12),
|
---|
144 | (13,2,13),
|
---|
145 | (14,2,14),
|
---|
146 | (15,2,15),
|
---|
147 | (16,2,16),
|
---|
148 | (17,2,17),
|
---|
149 | (18,2,18),
|
---|
150 | (19,2,19),
|
---|
151 | (20,2,20),
|
---|
152 | (21,2,21),
|
---|
153 | (22,2,22),
|
---|
154 | (23,2,23),
|
---|
155 | (24,2,24),
|
---|
156 | (25,2,25),
|
---|
157 | (26,2,26),
|
---|
158 | (27,2,27),
|
---|
159 | (28,2,28),
|
---|
160 | (29,2,29),
|
---|
161 | (30,2,30),
|
---|
162 | (31,2,31),
|
---|
163 | (32,2,32),
|
---|
164 | (33,2,33),
|
---|
165 | (34,2,34),
|
---|
166 | (35,2,35),
|
---|
167 | (36,2,36),
|
---|
168 | (37,2,37),
|
---|
169 | (38,2,38),
|
---|
170 | (39,2,39),
|
---|
171 | (40,2,40),
|
---|
172 | (41,2,41),
|
---|
173 | (42,2,42),
|
---|
174 | (43,2,43),
|
---|
175 | (44,2,44),
|
---|
176 | (45,2,45),
|
---|
177 | (46,2,46),
|
---|
178 | (47,2,47),
|
---|
179 | (48,2,48),
|
---|
180 | (49,2,49),
|
---|
181 | (1,3,1),
|
---|
182 | (2,3,2),
|
---|
183 | (3,3,3),
|
---|
184 | (4,3,4),
|
---|
185 | (5,3,5),
|
---|
186 | (6,3,6),
|
---|
187 | (7,3,7),
|
---|
188 | (8,3,8),
|
---|
189 | (9,3,9),
|
---|
190 | (10,3,10),
|
---|
191 | (11,3,11),
|
---|
192 | (12,3,12),
|
---|
193 | (13,3,13),
|
---|
194 | (14,3,14),
|
---|
195 | (15,3,15),
|
---|
196 | (16,3,16),
|
---|
197 | (17,3,17),
|
---|
198 | (18,3,18),
|
---|
199 | (19,3,19),
|
---|
200 | (20,3,20),
|
---|
201 | (21,3,21),
|
---|
202 | (22,3,22),
|
---|
203 | (23,3,23),
|
---|
204 | (24,3,24),
|
---|
205 | (25,3,25),
|
---|
206 | (26,3,26),
|
---|
207 | (27,3,27),
|
---|
208 | (28,3,28),
|
---|
209 | (29,3,29),
|
---|
210 | (30,3,30),
|
---|
211 | (31,3,31),
|
---|
212 | (32,3,32),
|
---|
213 | (33,3,33),
|
---|
214 | (34,3,34),
|
---|
215 | (35,3,35),
|
---|
216 | (36,3,36),
|
---|
217 | (37,3,37),
|
---|
218 | (38,3,38),
|
---|
219 | (39,3,39),
|
---|
220 | (40,3,40),
|
---|
221 | (41,3,41),
|
---|
222 | (42,3,42),
|
---|
223 | (43,3,43),
|
---|
224 | (44,3,44),
|
---|
225 | (45,3,45),
|
---|
226 | (46,3,46),
|
---|
227 | (47,3,47),
|
---|
228 | (48,3,48),
|
---|
229 | (49,3,49);
|
---|
230 |
|
---|
231 |
|
---|
232 |
|
---|
233 | ------------------------------------------------------
|
---|
234 |
|
---|
235 | insert into reservation(reservation_id,reservation_date,payment_type_id,user_id,seat_id,auditorium_id,projection_id)
|
---|
236 | values (005,'2021-12-23',12366,4123,1,1,12732),
|
---|
237 | (002,'2021-12-22',12366,4123,1,2,182736),
|
---|
238 | (003,'2021-12-19',12367,23013,5,3,61235);
|
---|
239 |
|
---|
240 | ------------------------------------------------------
|
---|
241 |
|
---|
242 | insert into payment(payment_id,payment_type_id,payment_date,user_id,reservation_id)
|
---|
243 | values (162536,12366,'2021-12-18',4123,002),
|
---|
244 | (162732,12367,'2021-12-20',23013,003);
|
---|
245 |
|
---|
246 | ------------------------------------------------------
|
---|
247 |
|
---|
248 | insert into is_(movie_id,genre_id)
|
---|
249 | values (132423,321),
|
---|
250 | (21232,211),
|
---|
251 | (34433423,121),
|
---|
252 | (454334,11);
|
---|
253 |
|
---|
254 | ------------------------------------------------------
|
---|
255 |
|
---|
256 | insert into controles(user_id,projection_id)
|
---|
257 | values (12342,12732),
|
---|
258 | (21231,182736),
|
---|
259 | (1208,61235);
|
---|
260 |
|
---|
261 | ------------------------------------------------------
|
---|
262 |
|
---|
263 | insert into gives(seat_limitation,projection_id, auditorium_id)
|
---|
264 | values (40,61235,2),
|
---|
265 | (35,12732,1),
|
---|
266 | (28,182736,2),
|
---|
267 | (42,182736,3);
|
---|
268 |
|
---|
269 | ------------------------------------------------------ |
---|