RelationalModel: V2_Polnenje_DB.sql

File V2_Polnenje_DB.sql, 6.4 KB (added by 153093, 7 days 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_Details (Vehicle_Details_Id, Vehicle_Type_Id, Make, Model, Capacity)
59values
60 (1,2,'Ford','Cargo', 20000),
61 (2,1,'MAN','TGL', 15000),
62 (3,2,'Ford','Transit', 8000),
63 (4,2,'Peugeot','Expert', 5000),
64 (5,3,'Peugeot','Partner', 2000),
65 (6,3,'Ford','Escort', 1000),
66 (7,3,'Citroen','C3', 1000);
67
68insert into public.Vehicle (Vehicle_Id, Vehicle_Details_Id, Registration)
69values
70 (1,1,'kr-434-sk'),
71 (2,1,'kr-332-sk'),
72 (3,2,'kr-356-sk'),
73 (4,3,'kr-196-sk'),
74 (5,3,'kr-897-sk'),
75 (6,4,'kr-934-sk'),
76 (7,5,'kr-237-sk'),
77 (8,6,'kr-646-sk'),
78 (9,7,'kr-223-sk');
79
80insert into public.Payment (Payment_Id , Payment_Status)
81values
82 (1,0),
83 (2,0),
84 (3,0),
85 (4,1),
86 (5,1),
87 (6,0),
88 (7,0),
89 (8,1),
90 (9,1);
91
92insert into public.Expense_Type (Expense_Type_Id, Expense_Type_Name, Expense_Type_Description)
93values
94 (1,'Gorivo','Gorivo Potroseno za vreme na dostavata za dvata pravci.(idenje i vrakjanje)'),
95 (2,'Patarina', 'Trosoci za patarina za dvata pravci.(idenje i vrakjanje)'),
96 (3,'Nepredvideni Trosoci', 'Site nepredvideni trosoci so koi moze da se sretneme za vreme na dostava.');
97
98insert into public.Warehouse (Warehouse_Id, Warehouse_Name, Address_Id)
99values
100 (1,'Glaven Magacin', 8),
101 (2,'Magacin 1', 9),
102 (3,'Magacin Skopje', 10);
103
104insert into public.Employee (Employee_Id, Employee_Name, Employee_Surname, Warehouse_Id)
105values
106 (1,'Trajce','Trajcev', 1),
107 (2,'Janko','Janev', 1),
108 (3,'Mite','Mitev', 1),
109 (4,'Vlado','Georgiev', 1),
110 (5,'Toshe','Toshev', 2),
111 (6,'Vlatko','Ratevski', 2),
112 (7,'Nikola','Nikolov', 3),
113 (8,'Toshe','Janev', 3),
114 (9,'Filip', 'Filipov', 3);
115
116insert into public.employee_drives_vehicle ( Vehicle_Id, Employee_Id)
117values
118 (1,1),
119 (2,1),
120 (5,1),
121 (6,2),
122 (8,2),
123 (3,3),
124 (4,3),
125 (7,4),
126 (9,5),
127 (2,5),
128 (2,6),
129 (4,7),
130 (5,8),
131 (8,9),
132 (3,9);
133
134insert into public.Shipment (Shipment_Id, Employee_Id, Payment_Id, Vehicle_Id, Shipment_Date)
135values
136 (1,1,1,1,'2024-12-10 14:30:00'),
137 (2,1,2,5,'2024-12-09 14:30:00'),
138 (3,2,3,6,'2024-12-08 14:30:00'),
139 (4,2,4,6,'2024-12-07 14:30:00'),
140 (5,5,5,2,'2024-12-06 14:30:00'),
141 (6,6,6,2,'2024-12-06 14:30:00'),
142 (7,6,7,2,'2024-12-04 14:30:00'),
143 (8,9,8,8,'2024-12-03 14:30:00'),
144 (9,4,9,7,'2024-12-03 14:30:00');
145
146insert into public.shipment_has_expense_of_expense_type (Expense_Type_Id, Shipment_Id, Amount)
147values
148 (1,1,2500),
149 (1,2,2000),
150 (1,3,1500),
151 (1,4,3000),
152 (1,5,3500),
153 (1,6,2100),
154 (1,7,2200),
155 (1,8,1000),
156 (1,9,1500),
157 (2,4,400),
158 (2,2,250),
159 (2,6,300),
160 (2,7,800),
161 (3,7,400),
162 (3,8,700);
163
164insert into public.shipment_load (Shipment_Id, Customer_Id, Wine_Id, Wine_Agreed_Price, Wine_Base_Price, Wine_Quantity)
165values
166 (1, 2, 1, 90, 50, 7000),
167 (1, 2, 2, 170, 80, 12000),
168 (2, 1, 3, 50, 30, 7000),
169 (3, 6, 5, 150, 100, 4500),
170 (4, 1, 8, 400, 250, 2000),
171 (4, 6, 7, 60, 50, 2500),
172 (5, 3, 9, 200, 150, 8000),
173 (5, 3, 8, 450, 250, 10000),
174 (5, 7, 8, 600, 250, 50),
175 (6, 5, 6, 275, 150, 17000),
176 (7, 2, 3, 45, 30, 15000),
177 (7, 2, 4, 150, 90, 3000),
178 (8, 6, 7, 75, 50, 7000),
179 (9, 4, 10, 650, 350, 50),
180 (9, 7, 9, 220, 150, 30);