1 | -- Customer
|
---|
2 | INSERT INTO Customer (CustomerID, CustomerName, CustomerSurName, Email, Address, CustomerContact) VALUES
|
---|
3 | (1, 'Marko', 'Markovski', 'marko@example.com', 'Street 123, Skopje', '070123456'),
|
---|
4 | (2, 'Elena', 'Stojanova', 'elena@example.com', 'Boulevard 45, Bitola', '071987654');
|
---|
5 |
|
---|
6 | -- Employee
|
---|
7 | INSERT INTO Employee (EmployeeID, EmployeeName, EmployeeSurName, Position, Department) VALUES
|
---|
8 | (1, 'Ivan', 'Petrov', 'Sales Manager', 'Sales'),
|
---|
9 | (2, 'Ana', 'Kostova', 'Maintenance Specialist', 'Maintenance');
|
---|
10 |
|
---|
11 | -- Product
|
---|
12 | INSERT INTO Product (ProductID, Model, Price, LicensePlate, Status) VALUES
|
---|
13 | (1, 'Volvo FH16', 120000.00, 'SK-1234-AB', 'available'),
|
---|
14 | (2, 'Scania R500', 95000.00, 'BT-5678-CD', 'rented'),
|
---|
15 | (3, 'Kögel Trailer', 30000.00, 'SK-2468-EF', 'available');
|
---|
16 |
|
---|
17 | -- Truck
|
---|
18 | INSERT INTO Truck (ProductID, HP) VALUES
|
---|
19 | (1, 750),
|
---|
20 | (2, 500);
|
---|
21 |
|
---|
22 | -- Trailer
|
---|
23 | INSERT INTO Trailer (ProductID, Capacity) VALUES
|
---|
24 | (3, 20.5);
|
---|
25 |
|
---|
26 | -- Procurement
|
---|
27 | INSERT INTO Procurement (TransactionID, EmployeeID, CustomerID, ProductID, ProcurementDate, Quantity) VALUES
|
---|
28 | (1, 1, 1, 1, '2025-04-01', 1),
|
---|
29 | (2, 1, 2, 2, '2025-04-10', 1);
|
---|
30 |
|
---|
31 | -- T_Type
|
---|
32 | INSERT INTO T_Type (TransactionID, Type, Duration, MonthlyPay, TotalPrice) VALUES
|
---|
33 | (1, 'Buy', NULL, NULL, 120000.00),
|
---|
34 | (2, 'Rent', 12, 3000.00, NULL);
|
---|
35 |
|
---|
36 | -- Customer Feedback
|
---|
37 | INSERT INTO CustomerFeedback (FeedbackID, CustomerID, ProductID, Rating, Comment, FeedbackDate) VALUES
|
---|
38 | (1, 1, 1, 5, 'Odlichen kamion, mnogu zadovolen!', '2025-04-05'),
|
---|
39 | (2, 2, 2, 4, 'Dobar kamion, no malo skapo.', '2025-04-15');
|
---|
40 |
|
---|
41 | -- Maintenance
|
---|
42 | INSERT INTO Maintenance (MainID, EmployeeID, ProductID, MainDate) VALUES
|
---|
43 | (1, 2, 1, '2025-04-20'),
|
---|
44 | (2, 2, 2, '2025-04-22');
|
---|
45 |
|
---|
46 | -- Views
|
---|
47 | INSERT INTO Views (CustomerID, ProductID) VALUES
|
---|
48 | (1, 1),
|
---|
49 | (2, 2),
|
---|
50 | (1, 3);
|
---|