RelationModel: polnenje_v3.sql

File polnenje_v3.sql, 3.8 KB (added by 201134, 22 months ago)
Line 
1insert into lokacii (adresa,cena)
2values ('adresa1',1000), ('adresa2',200), ('adresa3',500);
3
4insert into korisnici (datum_kreiran, ime, username, lozinka, tel_broj)
5values ('01.01.2021', 'user1', 'user1', 'lozinka1', '072456511'),
6( '03.29.2019', 'admin1', 'admin1', 'lozinka2', '072455693'),
7( '04.21.2020', 'admin2', 'admin2', 'lozinka3', '078135667'),
8( '10.01.2020', 'user2', 'user2', 'lozinka4', '071345678'),
9( '03.12.2018', 'bend1', 'bend1', 'lozinka5', '075266631'),
10('07.03.2022', 'ketering3', 'ketering3', 'lozinka6', '075211566'),
11( '09.12.2021', 'fotograf1', 'fotogoraf1', 'lozinka7', '076346213'),
12( '02.02.2019', 'user3', 'user3', 'lozinka8', '073098178'),
13( '02.12.2020', 'ketering2', 'ketering2', 'lozinka9', '072455693'),
14( '04.24.2020', 'bend2', 'bend2', 'lozinka10', '075266631'),
15( '03.01.2011', 'kelner1', 'kelner1', 'lozinka11', '073098178'),
16( '09.22.2003', 'kelner2', 'kelner2', 'lozinka12', '072455693'),
17( '01.29.2015', 'fotograf2', 'fotograf2', 'lozinka13', '075266631'),
18( '03.29.2016', 'admin3', 'admin3', 'lozinka14', '078135667'),
19( '09.10.2013', 'kelner3', 'kelner3', 'lozinka15', '075266631'),
20( '05.26.2010', 'fotograf3', 'fotograf3', 'lozinka16', '071345678'),
21( '03.17.2016', 'ketering1', 'ketering1', 'lozinka17', '078135667'),
22( '08.30.2019', 'bend3', 'bend3', 'lozinka18', '073098178');
23
24insert into keterinzi (korisnik_id, cena, adresa)
25values (6, 300, 'ulica1_ketering'),
26(9, 400,'ulica2_ketering'),
27(17, 500, 'ulica 3_ketering');
28
29insert into klienti (korisnik_id_korisnici, br_organizirani_nastani, korisnik_id_keterinzi)
30values (1, 1, 9), (4, 6, 17),(8, 0, 6);
31
32insert into admini (korisnik_id, br_organizirani_nastani)
33values (2, 1), (3, 10), (14, 4);
34
35insert into nastani (status, vreme, tip, datum, opis,adresa, korisnik_id_admini,korisnik_id_klienti)
36values ('zapocnat', '20:00', 'rodenden', '05.26.2010', 'rodenden na otvoreno', 'adresa1', 2, 1),
37('potvrden', '19:00', 'svadba', '08.30.2019', 'svadbena proslava', 'adresa2', 3, 4),
38('zapocnat', '20:00', 'matura', '01.29.2015', 'SUGS Georgi Dimitrov', 'adresa3', 14, 8);
39
40insert into bendovi (korisnik_id, cena)
41values (5, 1000),
42(10, 500),
43(18, 800);
44
45insert into fotografi (korisnik_id, cena, portfolio)
46values (7, 200, 'Corporate photography'),
47(13, 300, 'Wedding photography'),
48(16, 180, 'Sports photography');
49
50insert into kelneri (korisnik_id_korisnici, slobodni_denovi, god_iskustvo, korisnik_id_keterinzi)
51values (11, 2, 1, 6),
52(15, 1, 4, 9),
53(12, 3, 10, 17);
54
55insert into produkti (produkt_id, ime)
56values ('1', 'salata'),
57('2', 'vino'),
58('3', 'viski'),
59('4', 'torta'),
60('5', 'piroshki'),
61('6', 'sok');
62
63insert into hrana (produkt_id, vegetarijansko, kalorii, vegan)
64values (1, true, '100', true),
65(4, true, null, false),
66(5, false, null, false);
67
68insert into pijaloci (produkt_id, dali_alkoholen, procenti_alkohol)
69values (2, true, 13),
70(3, true, 35),
71(6, false, null);
72
73insert into tel_broj (adresa, tel_broj)
74values ('adresa2', '072156632'),
75('adresa3', '077112356'),
76('adresa1','074211238');
77
78insert into alergeni (produkt_id, alergeni)
79values ('1', 'null'), ('4', 'mleko'), ('5','kashkaval');
80
81insert into bend_sviri_nastan (korisnik_id, nastan_id, status)
82values (5,1,'zapocnat'), (10,3,'zapocnat'),(18,2,'potvrden')
83
84insert into fotograf_slika_nastan (korisnik_id, nastan_id, status)
85values (7,1,'zapocnat'), (16,2,'potvrden'), (13,3,'potvrden')
86
87insert into kelner_raboti_na_nastan (korisnik_id, nastan_id, status)
88values (12,1,'potvrden'), (15,1,'potvrden'), (11,2,'potvrden')
89
90insert into ketering_nudi_produkt (korisnik_id, produkt_id)
91values (17,2), (6,2), (9,3), (17,1), (6,4), (9,5), (17,3), (6,6), (9,2)
92
93insert into ketering_rezervira_nastan (korisnik_id, nastan_id, status, kolicina)
94values (6,1,'potvrden',1), (9,2,'potvrden',1), (17,3,'potvrden',1)