1 | -- DROP SCHEMA "Project";
|
---|
2 |
|
---|
3 | CREATE SCHEMA "Project" AUTHORIZATION db_202122z_va_prj_freeparkingspace_owner;
|
---|
4 |
|
---|
5 | insert into najava (Korisnicko_ime, EMBG, Br_tel,Email, password, Ime, Prezime)
|
---|
6 | values('Martina2810', '2810000450196', '078445325', 'Martina2810@gmail.com', 'martin4e1', 'Martina', 'Poposka'),
|
---|
7 | ('Mihaela3810', '1810000450196', '078445387', 'Mihaela3810@gmail.com', 'mihaela@', 'Mihaela', 'Simonoska'),
|
---|
8 | ('Aleksandra4810', '1110000450196', '078445399', 'Aleksandra4810@gmail.com', 'aleksa@!@', 'Aleksandra', 'Efremovska'),
|
---|
9 | ('Elena5810', '1210000450196', '078445324', 'Elena5810@gmail.com','@elena@@', 'Elena', 'Elenoska'),
|
---|
10 | ('Kristina6810', '1310000450196', '078445323', 'Kristina6810@gmail.com','kik@a','Kristina', 'Simeonoska'),
|
---|
11 | ('Simona7810', '1410000450196', '078445322', 'Simona7810@gmail.com','sim@nA','Simona', 'Kamceska'),
|
---|
12 | ('Tamara3811', '1510000450196', '078445321', 'Tamara3811@gmail.com','tAmAr@','Tamara', 'Ivanoska'),
|
---|
13 | ('Angela9810', '1610000450196', '078445320', 'Angela9810@gmail.com','anGel@a','Angela', 'Kiroska'),
|
---|
14 | ('Simeon1810', '1710000450196', '078445329', 'Simeon1810@gmail.com','simeOn#','Simeon', 'Zaev'),
|
---|
15 | ('Majkl0810', '180000450196', '078445328', 'Majkl0810@gmail.com','ma!kL','Majkl', 'Mijalkov'),
|
---|
16 | ('Petar2210', '1910000450196', '078445327', 'Petar2210@gmail.com','peter&','Petar', 'Gruevski'),
|
---|
17 | ('Matea2410', '2810000450196', '078445326', 'Matea2410@gmail.com','mAtEA%','Matea', 'Sekerinska');
|
---|
18 |
|
---|
19 | insert into vraboten (Uloga, korisnicko_ime)
|
---|
20 | values('Administrator','Martina2810'),
|
---|
21 | ('Administrator','Mihaela3810'),
|
---|
22 | ('Administrator','Aleksandra4810'),
|
---|
23 | ('kancelar','Kristina6810'),
|
---|
24 | ('kancelar','Tamara3811'),
|
---|
25 | ('kancelar','Simona7810'),
|
---|
26 | ('kontroler','Elena5810'),
|
---|
27 | ('kontroler','Angela9810'),
|
---|
28 | ('kontroler','Simeon1810');
|
---|
29 |
|
---|
30 |
|
---|
31 | insert into administrator(Korisnicko_ime)
|
---|
32 | values ('Martina2810'),
|
---|
33 | ('Mihaela3810'),
|
---|
34 | ('Aleksandra4810');
|
---|
35 |
|
---|
36 |
|
---|
37 | insert into kontroler( Korisnicko_ime)
|
---|
38 | values ('Elena5810'),
|
---|
39 | ('Angela9810'),
|
---|
40 | ('Simeon1810');
|
---|
41 |
|
---|
42 | insert into kancelar(Korisnicko_ime)
|
---|
43 | values('Kristina6810'),
|
---|
44 | ('Tamara3811'),
|
---|
45 | ('Simona7810');
|
---|
46 |
|
---|
47 | insert into Ime_na_parking (Id_ime,Lokacija,Administrator_Korisnicko_ime)
|
---|
48 | values(1,'Bunjakovec','Martina2810'),
|
---|
49 | (2,'Kapistec','Mihaela3810'),
|
---|
50 | (3,'Centar','Aleksandra4810');
|
---|
51 |
|
---|
52 | insert into Zona (Id_zona, Ime_na_parking_Id_ime)
|
---|
53 | values('A1',1),
|
---|
54 | ('A2',1),
|
---|
55 | ('A3',1);
|
---|
56 |
|
---|
57 | insert into Parking_mesto(Broj_na_pmesta, Idzona)
|
---|
58 | values(1,'A1'),
|
---|
59 | (2,'A1'),
|
---|
60 | (3,'A1');
|
---|
61 |
|
---|
62 | insert into Korisnik( Korisnicko_ime)
|
---|
63 | values('Majkl0810'),
|
---|
64 | ('Petar2210'),
|
---|
65 | ('Matea2410');
|
---|
66 |
|
---|
67 | insert into Avtomobil(Reg_tablica, Marka, Boja, Korisnickoime)
|
---|
68 | values('SK-2410-AZ','Mercedes','CrnaMetalic','Matea2410'),
|
---|
69 | ('BT-2210-AZ','BMW','Bela','Petar2210'),
|
---|
70 | ('OH-0810-AZ','YUGO','ROZOVA','Majkl0810');
|
---|
71 |
|
---|
72 |
|
---|
73 | insert into Plakjanje(Id_plakanje,Korisnickoime, Br_na_smetka,tip_plakjanje)
|
---|
74 | values
|
---|
75 | (113,'Petar2210','21050133','karticka'),
|
---|
76 | (114,'Majkl0810','21050171','karticka');
|
---|
77 |
|
---|
78 |
|
---|
79 | insert into Plakjanje(Id_plakanje,Korisnickoime, br_tel,tip_plakjanje)
|
---|
80 | values (112,'Matea2410','078445326','mobilno');
|
---|
81 |
|
---|
82 |
|
---|
83 | insert into Kazna(Id_kazna, iznos, broj_kazni, Korisnickoime)
|
---|
84 | values(1,5100,2,'Matea2410'),
|
---|
85 | (2,2550,1,'Petar2210'),
|
---|
86 | (3,15980,4,'Majkl0810');
|
---|
87 |
|
---|
88 | insert into Rezervacija(Id_rezervacija, pocetno_vreme, krajno_vreme, Reg_tablica, Broj_na_pmesta, Id_plakanje)
|
---|
89 | values(201,now() + interval '1 hour',now() + interval '3 hours','SK-2410-AZ',1,112),
|
---|
90 | (202,now() + interval '4 hours',now() + interval '5 hours','BT-2210-AZ',2,113),
|
---|
91 | (203,now() + interval '3 hour',now() + interval '8 hours','OH-0810-AZ',3,114);
|
---|
92 |
|
---|
93 |
|
---|
94 | insert into Kontrola (izvrsena_kontrola, vreme_na_kontrola, konstantacija, Korisnicko_ime, Broj_na_pmesta, Id_rezervacija, Id_kazna)
|
---|
95 | values(1,now() + interval'10 minutes','Pogresno parkiranje','Elena5810',1,201,1),
|
---|
96 | (2,now() + interval'15 minutes','Zafateno pogresno parking mesto','Angela9810',2,202,2),
|
---|
97 | (3,now() + interval'13 minutes','Go ostetil voziloto na sosedniot parking','Simeon1810',3,203,3); |
---|