

insert into dostavuvaci (korisnicko_ime) values
('ivona'),('matej'),('nikola'),('dejan');


insert into vraboteni  (korisnicko_ime) values
('marko'),('mila'), ('biljance'),('dejanco');

insert into kupuvaci (korisnicko_ime) values
('mirjana'),('goran'),('filip'),('kosta');


insert into naracki (korisnicko_ime, suma, nacin_na_plakanje, status) values
('mirjana',2000,'karticka', 'odobrena'),
('mirjana',3250,'karticka', 'odobrena'),
('goran',2000,'gotovina', 'dostaveno'),
('filip',2000,'karticka', 'odobrena');

insert into dostavuvanja (data_na_dostavuvanje, korisnicko_ime,id_naracka) values
(now(),'ivona',1),
(now(),'matej',2),
(now(),'nikola',3),
(now(),'dejan',4);



insert into kompanija (ime) values 
('razer'),
('logitech'),
('rampage'),
('acer');



insert into proizvodi (kolicina, ime_proizvod, ime) values 
(20, 'slusalki', 'rampage'),
(13, 'tastatura', 'razer'),
(14, 'laptop', 'acer'),
(23, 'gluvce', 'logitech');

insert into parce(id_proizvod) values
(1),
(2),
(3);

insert into kategorii (ime, id_proizvod) values 
('audio',1),
('komponenti',2),
('komponenti',4);

insert into cena ( datum_na_cena, popust, iznos,id_proizvod) values
(now(),20,14000,1),
(now(),20,32000,4),
(now(),20,300,2),
(now(),20,4500,3);

insert into garancija(datum_do,datum_od,id_proizvod) values 
(now()+interval '2 month',now(),1),
(now()+interval '4 month',now(),2),
(now()+interval '6 month',now(),3),
(now()+interval '1 month',now(),4);

insert into komentari(id_proizvod, korisnicko_ime, tekst) values 
(1,'mirjana','ahdjuas hduiabsd'),
(2,'goran','ahdjuaasdassh dsaduiabsd'),
(3,'filip','ahdjuashdasdui dsaabsd'),
(4,'kosta','ahdjuaasdasdshduia sadbsd');

insert into magacini (lokacija, korisnicko_ime) values 
('Pero Nakov','marko'),
('Pero Nakov','biljance'),
('Rudzer Boskovic','dejanco'),
('Rudzer Boskovic','mila');


insert into parce_e_del_od_naracki (id_parce, id_naracka) values 
(1,2) ,
(2,3),
(3,4);

insert into parce_dostapno_vo_magacini (id_parce, id_magacin) values 
(1,2),
(2,2),
(3,2);

insert into komentar_na_proizvod (korisnicko_ime, id_proizvod ) values 
('mirjana',1),
('filip',3),
('goran',2);
