1 | insert into project.Korisnik(ime_prezime, password_korisnik)
|
---|
2 | values ('Hristijan Mitic','hrismiti' ),
|
---|
3 | ('Kristijan Markovski','kikokiko' ),
|
---|
4 | ('Trajko Mladenovski','ldldld123' );
|
---|
5 |
|
---|
6 | insert into project.Korisnik(ime_prezime, password_korisnik)
|
---|
7 | values ('Primer proba','kafsgfa' ),
|
---|
8 | ('Ako Lil','ksfsafko' ),
|
---|
9 | ('Kako Kikikj','ldsd123' );
|
---|
10 |
|
---|
11 | insert into project.Korisnik(ime_prezime, password_korisnik)
|
---|
12 | values ('Andrej Probovski','aaa123' ),
|
---|
13 | ('Kiki Liki','223sfa' ),
|
---|
14 | ('Roko Leni','ukikj123' );
|
---|
15 |
|
---|
16 | insert into project.Korisnik(ime_prezime, password_korisnik)
|
---|
17 | values ('Andrej Andrejkovski','ako222' ),
|
---|
18 | ('Miki Riki','miki234' ),
|
---|
19 | ('Oko Nos','okno123' );
|
---|
20 |
|
---|
21 | insert into project.Korisnik(ime_prezime, password_korisnik)
|
---|
22 | values ('Bojan Bozinovski','boki3421' ),
|
---|
23 | ('Oki Koki','oki2341' ),
|
---|
24 | ('Vale Kale','vaka456' );
|
---|
25 |
|
---|
26 | insert into project.Kupuvac(id_korisnik,mail) values
|
---|
27 | (1, 'proba@gmail.com'),
|
---|
28 | (3, 'trajko@gmail.com'),
|
---|
29 | (4,'primer@yahoo.com'),
|
---|
30 | (10, 'andrejandrejkovski@yahoo.com');
|
---|
31 |
|
---|
32 | insert into project.admin_korisnik(id_korisnik)values (6),(11),(12);
|
---|
33 |
|
---|
34 | insert into project.dostavuvac(id_korisnik) values (2),(5),(13);
|
---|
35 |
|
---|
36 | insert into project.magacioner(id_korisnik, id_magacin) values (7,1),(9,2),(14,3);
|
---|
37 |
|
---|
38 | insert into project.telefonskibroj(id_korisnik, telefonski_broj) values
|
---|
39 | (1,'078 500 000'),
|
---|
40 | (3,'070 222 305'),
|
---|
41 | (4,'077 777 777'),
|
---|
42 | (10,'072 335 302');
|
---|
43 |
|
---|
44 | insert into project.naracka(vkupno_suma,datum, status, adresa,id_korisnik) values
|
---|
45 | (2000, now()- interval '2days','za dostava','Goce delcev br 32',1),
|
---|
46 | (1500,now()- interval '2years','zavrsena', 'Jane Sandanski br 5',3),
|
---|
47 | (1000, now()- interval '1day','za dostava','Ilindenska br 1', 4),
|
---|
48 | (1200, now()- interval '1hour','se sprema','Ilindenska br 43', 10);
|
---|
49 |
|
---|
50 |
|
---|
51 | insert into project.dostava (id_korisnik, id_naracka, datum, status) values
|
---|
52 | (2,1,now()-interval '2days','za dostava'),
|
---|
53 | (5,3,now()- interval '5hours','za dostava'),
|
---|
54 | (2,2,now() - interval '2years','dostavena');
|
---|
55 |
|
---|
56 |
|
---|
57 | insert into project.magacin (lokacija) values
|
---|
58 | ('Aerodrom'),
|
---|
59 | ('Karpos'),
|
---|
60 | ('Kale');
|
---|
61 |
|
---|
62 |
|
---|
63 | insert into project.kategorija(ime) values
|
---|
64 | ('Suvomesnati proizvodi'),
|
---|
65 | ('Zelencuk'),
|
---|
66 | ('Testenini');
|
---|
67 |
|
---|
68 | insert into project.produkt(ime, opis , id_korisnik) values
|
---|
69 | ('Spageti', 'Spageti 15cm', 6),
|
---|
70 | ('Domati','',6),
|
---|
71 | ('Slanina', 'Slanina',6),
|
---|
72 | ('Kulen', 'Kulen',11),
|
---|
73 | ('Krastavica', 'Krastavica',12);
|
---|
74 |
|
---|
75 | insert into project.cena(id_produkt, cena_od, cena_do, iznos)values
|
---|
76 | (1,now()- interval '2days',null,100),
|
---|
77 | (2,now()- interval '1year',now()+ interval '2months',70),
|
---|
78 | (3,now() - interval '2months',null,125),
|
---|
79 | (4,now() - interval '1month',null,150),
|
---|
80 | (5,now() - interval '2days',now() + interval '2days',45);
|
---|
81 |
|
---|
82 |
|
---|
83 | insert into project.naracka_sodrzi_produkt (id_produkt, id_naracka , kolicina, cena) values
|
---|
84 | (1,3,10,1000),
|
---|
85 | (2,3,25,1900),
|
---|
86 | (3,2,12,1500),
|
---|
87 | (4,1,13,2000),
|
---|
88 | (5,4,30,1200);
|
---|
89 |
|
---|
90 | insert into project.produkt_e_od_kategorija (id_produkt, id_kategorija) values
|
---|
91 | (1,3),
|
---|
92 | (2,2),
|
---|
93 | (3,1),
|
---|
94 | (4,1),
|
---|
95 | (5,2);
|
---|
96 |
|
---|
97 | insert into project.produkt_e_vo_magacin (id_produkt, id_magacin, kolicina) values
|
---|
98 | (1,2,10),
|
---|
99 | (2,1,5),
|
---|
100 | (3,2,7),
|
---|
101 | (3,3,10),
|
---|
102 | (1,1,7),
|
---|
103 | (4,2,1),
|
---|
104 | (5,1,15),
|
---|
105 | (5,2,10);
|
---|
106 |
|
---|
107 |
|
---|
108 |
|
---|