RelationalModel: V1_Polnenje_DB.sql

File V1_Polnenje_DB.sql, 6.3 KB (added by 153093, 4 weeks ago)
Line 
1INSERT INTO public.wine_Type (Wine_Type_Id, Wine_Type_Name, Wine_Type_Description, Wine_Type_Region)
2values
3 (1,'Chardonnay','Bogat i kremast so noti na jabolko, citrus, i tropski ovoshja, chesto so kremasta tekstura dokolku e chuvan vo bure od dab.','Poloski Region'),
4 (2,'Sauvignon Blanc','Svez i zestok so vkus na limeta, zeleno jabolko, i herbalni tonovi kako treva ili zelena piperka.','Loire Valley, Ovcepolski Region'),
5 (3,'Pinot Noir','Lesno telo so svetli crveni ovoshni vkusi kako cherries, malini, i brusnica, dopolneti so zemjesti ili cvetni noti.','Kumanovski Region'),
6 (4,'Cabernet Sauvignon','Silen vkus na crna ribizla, crna kapina, i tragovi na tutun ili dab','Kratovski Region'),
7 (5,'Riesling','Aromatichen i cveten so vkusovi koi se dvizhat od zestok citrus do koskesti ovoshja, chesto so osvezhitelna kiselost. Mozhe da bide suv ili sladok.','Kavadarecki Region');
8
9insert into public.Wine (Wine_id, Wine_Name, Base_Price, Year_Produced, Wine_Type_Id)
10values
11 (1, 'Monteko Chardonnay', 50,'2023-12-10 14:30:00',1),
12 (2, 'Monteko Premium Chardonnay', 80,'2022-12-10 14:30:00',1),
13 (3, 'Monteko Sauvignon Blanc', 30,'2021-12-10 14:30:00',2),
14 (4, 'Monteko Premium Sauvignon Blanc', 90,'2022-11-10 14:30:00',2),
15 (5, 'Monteko Pinot Noir', 100,'2020-12-10 14:30:00',3),
16 (6, 'Monteko Premium Pinot Noir', 150,'2020-08-10 14:30:00',3),
17 (7, 'Monteko Cabernet Sauvignon', 50,'2013-12-10 14:30:00',4),
18 (8, 'Monteko Premium Cabernet Sauvignon', 250,'2017-12-10 14:30:00',4),
19 (9, 'Monteko Riesling', 150,'2018-12-10 14:30:00',5),
20 (10, 'Monteko Premium Riesling', 350,'2010-12-10 14:30:00',5);
21
22insert into public.Customer_Type (Customer_Type_Id, Customer_Type_Name, Customer_Type_Description)
23values
24 (1, 'Supermarket','Golema prodavnica koja prodava poveketo tipovi na hrana i drugi proizvodi potrebni vo domot.'),
25 (2, 'Kafana','Mesta kade lugjeto odat da jadat, pijat i razgovaraat.'),
26 (3, 'Sopstvena Upotreba','Prodazhba na edno domakinstvo ili eden chovek za sopstvena upotreba.'),
27 (4, 'Uvoz/Izvoz','Firmi koi vrshat uvoz/izvoz nadvor od zemjata.');
28
29insert into public.Address (Address_Id, Street, City, Building_number, Postcode)
30values
31 (1,'Ilindenska','Skopje',17,'1000'),
32 (2,'Pitu Guli','Tetovo',2,'1232'),
33 (3,'Jane Sandanski','Kumanovo',13,'0077'),
34 (4,'Goce Delcev','Kicevo',2,'5643'),
35 (5,'Koco Racin','Veles',87,'4324'),
36 (6,'Bulevar 1','Stip',13,'6547'),
37 (7,'Glaven Bulevar','Strumica',15,'1111'),
38 (8,'Chairska','Kratovo',43,'1360'),
39 (9,'Dolnomalska','Kratovo',1,'1360'),
40 (10,'Partizanska','Skopje',100,'1000');
41
42insert into public.Customer (Customer_Id, Customer_Name, Customer_Email, Customer_Phone_Number, Customer_Type_Id, Address_Id)
43values
44 (1,'Rustikana','rustikana@email.com', '+389/77-434-232',2, 1),
45 (2,'Ramstor Glaven Magacin','ramstor@email.com', '+389/77-443-232',1, 2),
46 (3,'Vero Glaven Magacin','vero@email.com', '+389/77-434-265',1, 3),
47 (4,'Jane Janev','janejanev@email.com', '+389/77-434-232',3, 5),
48 (5,'Trajkovi Uvoz/Izvoz','trajkoviui@email.com', '+389/77-434-232',4, 4),
49 (6,'Kafana Skopje','kafanaskopje@email.com', '+389/77-332-232',2, 6),
50 (7,'Atanas Spasev','atanas@email.com', '+389/77-552-232',3, 7);
51
52insert into public.Vehicle_Type (Vehicle_Type_Id, Vehicle_Type_Name)
53values
54 (1,'Kamion'),
55 (2,'Kombe'),
56 (3,'Kola');
57
58insert into public.Vehicle (Vehicle_Id, Vehicle_Type_Id, Make, Model, Registration, Capacity)
59values
60 (1,1,'Ford','Cargo','kr-434-sk', 20000),
61 (2,1,'Ford','Cargo','kr-332-sk', 20000),
62 (3,1,'MAN','TGL','kr-356-sk', 15000),
63 (4,2,'Ford','Transit','kr-196-sk', 8000),
64 (5,2,'Ford','Transit','kr-897-sk', 8000),
65 (6,2,'Peugeot','Expert','kr-934-sk', 5000),
66 (7,3,'Peugeot','Partner','kr-237-sk', 2000),
67 (8,3,'Ford','Escort','kr-646-sk', 1000),
68 (9,3,'Citroen','C3','kr-223-sk', 1000);
69
70insert into public.Payment (Payment_Id , Payment_Status)
71values
72 (1,0),
73 (2,0),
74 (3,0),
75 (4,1),
76 (5,1),
77 (6,0),
78 (7,0),
79 (8,1),
80 (9,1);
81
82insert into public.Expense_Type (Expense_Type_Id, Expense_Type_Name, Expense_Type_Description)
83values
84 (1,'Gorivo','Gorivo Potroseno za vreme na dostavata za dvata pravci.(idenje i vrakjanje)'),
85 (2,'Patarina', 'Trosoci za patarina za dvata pravci.(idenje i vrakjanje)'),
86 (3,'Nepredvideni Trosoci', 'Site nepredvideni trosoci so koi moze da se sretneme za vreme na dostava.');
87
88insert into public.Warehouse (Warehouse_Id, Warehouse_Name, Address_Id)
89values
90 (1,'Glaven Magacin', 8),
91 (2,'Magacin 1', 9),
92 (3,'Magacin Skopje', 10);
93
94insert into public.Employee (Employee_Id, Employee_Name, Employee_Surname, Warehouse_Id)
95values
96 (1,'Trajce','Trajcev', 1),
97 (2,'Janko','Janev', 1),
98 (3,'Mite','Mitev', 1),
99 (4,'Vlado','Georgiev', 1),
100 (5,'Toshe','Toshev', 2),
101 (6,'Vlatko','Ratevski', 2),
102 (7,'Nikola','Nikolov', 3),
103 (8,'Toshe','Janev', 3),
104 (9,'Filip', 'Filipov', 3);
105
106insert into public.employee_drives_vehicle ( Vehicle_Id, Employee_Id)
107values
108 (1,1),
109 (2,1),
110 (5,1),
111 (6,2),
112 (8,2),
113 (3,3),
114 (4,3),
115 (7,4),
116 (9,5),
117 (2,5),
118 (2,6),
119 (4,7),
120 (5,8),
121 (8,9),
122 (3,9);
123
124insert into public.Shipment (Shipment_Id, Employee_Id, Payment_Id, Vehicle_Id, Shipment_Date)
125values
126 (1,1,1,1,'2024-12-10 14:30:00'),
127 (2,1,2,5,'2024-12-09 14:30:00'),
128 (3,2,3,6,'2024-12-08 14:30:00'),
129 (4,2,4,6,'2024-12-07 14:30:00'),
130 (5,5,5,2,'2024-12-06 14:30:00'),
131 (6,6,6,2,'2024-12-06 14:30:00'),
132 (7,6,7,2,'2024-12-04 14:30:00'),
133 (8,9,8,8,'2024-12-03 14:30:00'),
134 (9,4,9,7,'2024-12-03 14:30:00');
135
136insert into public.shipment_has_expense_of_expense_type (Expense_Type_Id, Shipment_Id, Amount)
137values
138 (1,1,2500),
139 (1,2,2000),
140 (1,3,1500),
141 (1,4,3000),
142 (1,5,3500),
143 (1,6,2100),
144 (1,7,2200),
145 (1,8,1000),
146 (1,9,1500),
147 (2,4,400),
148 (2,2,250),
149 (2,6,300),
150 (2,7,800),
151 (3,7,400),
152 (3,8,700);
153
154insert into public.shipment_load (Shipment_Id, Customer_Id, Wine_Id, Wine_Agreed_Price, Wine_Base_Price, Wine_Quantity)
155values
156 (1, 2, 1, 90, 50, 7000),
157 (1, 2, 2, 170, 80, 12000),
158 (2, 1, 3, 50, 30, 7000),
159 (3, 6, 5, 150, 100, 4500),
160 (4, 1, 8, 400, 250, 2000),
161 (4, 6, 7, 60, 50, 2500),
162 (5, 3, 9, 200, 150, 8000),
163 (5, 3, 8, 450, 250, 10000),
164 (5, 7, 8, 600, 250, 50),
165 (6, 5, 6, 275, 150, 17000),
166 (7, 2, 3, 45, 30, 15000),
167 (7, 2, 4, 150, 90, 3000),
168 (8, 6, 7, 75, 50, 7000),
169 (9, 4, 10, 650, 350, 50),
170 (9, 7, 9, 220, 150, 30);