| 1 | |
| 2 | {{{ |
| 3 | -- Insert customers |
| 4 | INSERT INTO customer (CustomerID, CustomerName, CustomerSurName, Email, Address, CustomerContact, Password) VALUES |
| 5 | (1, 'Marko', 'Markovski', 'markoexample.com', 'Street 123, Skopje', '070123456', 'marko123'), |
| 6 | (2, 'Elena', 'Stojanova', 'elenaexample.com', 'Boulevard 45, Bitola', '071987654', 'elena123'), |
| 7 | (3, 'David', 'Trajchev', 'davidtrajchevgmail.com', 'UL.ANASTAS MITREV BR.41-2', '076999813', 'pwd_hash_1'), |
| 8 | (4, 'David-v2', 'Trajchev', 'V2davidtrajchevgmail.com', 'UL.ANASTAS MITREV BR.41-2', '077999813', 'pwd_hash_2'), |
| 9 | (5, 'Davidd', 'Trajchev', 'ddavidtrajchevgmail.com', 'UL.ANASTAS MITREV BR.41-2', '076999813', 'pwd_hash_3'); |
| 10 | |
| 11 | -- Insert employees |
| 12 | INSERT INTO employee (EmployeeID, EmployeeName, EmployeeSurName, Position, Department, Email, Password) VALUES |
| 13 | (1, 'Ivan', 'Petrov', 'Sales Manager', 'Sales', 'ivanexample.com', 'ivan123'), |
| 14 | (2, 'Ana', 'Kostova', 'Maintenance Specialist', 'Maintenance', 'anaexample.com', 'ana123'), |
| 15 | (1000, 'Admin', 'User', 'Admin', 'Admin', 'adminexample.com', 'admin123'), |
| 16 | (1001, 'David', 'Trajchev', 'Test', 'Maintenance', 'davidexample.com', 'david123'); |
| 17 | |
| 18 | -- Insert procurement transactions |
| 19 | INSERT INTO procurement (TransactionID, EmployeeID, CustomerID, ProcurementDate, Quantity, Status, Notified, GroupID) VALUES |
| 20 | (1, 1, 1, '2025-04-01', 1, 'Rejected', FALSE, NULL), |
| 21 | (2, 1, 2, '2025-04-10', 1, 'Rejected', FALSE, NULL), |
| 22 | (3, 1, 2, '2025-05-04', 1, 'Rejected', FALSE, NULL), |
| 23 | (4, 1, 3, '2025-05-20', 1, 'Approved', TRUE, '1'); |
| 24 | |
| 25 | -- Insert wallet data |
| 26 | INSERT INTO wallet (WalletID, CustomerID, Balance, CardNumber, ExpiryDate, CVV, CardHolderName) VALUES |
| 27 | (5, 3, 27010854.31, '4444444444444444', '2027-12-31', '123', 'David Trajchev'), |
| 28 | (6, 4, 3000.00, '5500000000000004', '2028-11-30', '456', 'David-v2 Trajchev'), |
| 29 | (7, 2, 3000.00, '5500000000000000', '2026-11-30', '456', 'Elena Stojanova'); |
| 30 | |
| 31 | -- Insert procurement_request data |
| 32 | INSERT INTO procurement_request (RequestID, CustomerID, WalletID, ProcurementID, Quantity, RequestedAt, Status, PaymentMethod, PaymentStatus, MonthlyPay, TotalPrice, Duration, CardID, TransactionType, GroupID) VALUES |
| 33 | (1, 3, 2, 1, 1, '2025-05-28 18:48:35', 'Rejected', NULL, 'Reserved', 95000.00, 2280000.00, 24, NULL, 'Buy', NULL), |
| 34 | (38, 3, 2, 1, 1, '2025-05-29 00:59:48', 'Approved', 'Card', 'Reserved', NULL, 100.00, NULL, 5, 'Buy', NULL); |
| 35 | |
| 36 | -- Insert products |
| 37 | INSERT INTO product (ProductID, ProcurementID, ProcurementRequestID, Model, Price, LicensePlate, Status) VALUES |
| 38 | (1, 1, 1, 'Volvo FH16', 3500.00, 'SK-1234-AB', 'sold'), |
| 39 | (2, 1, 1, 'Scania R500', 100.00, 'BT-5678-CD', 'sold'), |
| 40 | (3, 2, 1, 'Kgel Trailer', 300.00, 'SK-2468-EF', 'available'), |
| 41 | (4, 2, 1, 'DAF808', 100.00, 'SK-1111-LL', 'sold'); |
| 42 | |
| 43 | -- Insert feedback |
| 44 | INSERT INTO customerfeedback (FeedbackID, CustomerID, Rating, Comment, FeedbackDate, TransactionID) VALUES |
| 45 | (1, 1, 5, 'Odlichen kamion, mnogu zadovolen!', '2025-04-05', 1), |
| 46 | (2, 2, 4, 'Dobar kamion, no malo skapo.', '2025-04-15', 2); |
| 47 | |
| 48 | -- Insert maintenance records |
| 49 | INSERT INTO maintenance (MainID, MainDate, Description, Cost, Status, StartTime, EndTime) VALUES |
| 50 | (2, '2025-05-04', 'Maintenance scheduled', 0.00, 'Completed', '2025-06-01 13:27:50', NULL), |
| 51 | (3, '2025-05-22', 'Pending maintenance', 0.00, 'Pending', '2025-06-01 13:27:50', NULL); |
| 52 | |
| 53 | -- Insert trucks |
| 54 | INSERT INTO truck (ProductID, HP) VALUES |
| 55 | (1, 750), |
| 56 | (2, 500), |
| 57 | (4, 999); |
| 58 | |
| 59 | -- Insert trailers |
| 60 | INSERT INTO trailer (ProductID, Capacity) VALUES |
| 61 | (3, 20.50), |
| 62 | (5, 99.00); |
| 63 | |
| 64 | -- Insert transaction types |
| 65 | INSERT INTO t_type (TransactionID, Type, Duration, MonthlyPay, TotalPrice) VALUES |
| 66 | (3, 'Buy', NULL, NULL, 30000.00), |
| 67 | (11, 'Buy', NULL, NULL, 120000.00), |
| 68 | (12, 'Rent', 24, 3958.33, 95000.00); |
| 69 | |
| 70 | -- Insert product maintenance associations |
| 71 | INSERT INTO product_maintenance (ProductID, MaintenanceID) VALUES |
| 72 | (1, 2), |
| 73 | (3, 3); |
| 74 | |
| 75 | -- Insert employee maintenance associations |
| 76 | INSERT INTO employee_maintenance (EmployeeID, MaintenanceID) VALUES |
| 77 | (2, 2), |
| 78 | (1, 3); |
| 79 | |
| 80 | -- Insert views (customer viewed products) |
| 81 | INSERT INTO views (CustomerID, ProductID) VALUES |
| 82 | (1, 1), |
| 83 | (2, 2), |
| 84 | (2, 1); |
| 85 | |
| 86 | }}} |