-- Seed cars (users are seeded from DataInitializer.java using the real password encoder)
INSERT INTO cars (make, model, registration_number, type, seats, transmission, fuel_type, price_per_day, image_url, available)
SELECT 'Volkswagen', 'Virtus', 'KL07AA1001', 'SEDAN', 5, 'MANUAL', 'PETROL', 2200.00, '/images/virtus.png', true
WHERE NOT EXISTS (SELECT 1 FROM cars WHERE registration_number = 'KL07AA1001');

INSERT INTO cars (make, model, registration_number, type, seats, transmission, fuel_type, price_per_day, image_url, available)
SELECT 'Mahindra', 'Thar', 'KL07AA1002', 'SUV', 4, 'MANUAL', 'DIESEL', 3500.00, '/images/thar.png', true
WHERE NOT EXISTS (SELECT 1 FROM cars WHERE registration_number = 'KL07AA1002');

INSERT INTO cars (make, model, registration_number, type, seats, transmission, fuel_type, price_per_day, image_url, available)
SELECT 'MG', 'Hector', 'KL07AA1003', 'SUV', 7, 'AUTOMATIC', 'PETROL', 3200.00, '/images/hector.png', true
WHERE NOT EXISTS (SELECT 1 FROM cars WHERE registration_number = 'KL07AA1003');

INSERT INTO cars (make, model, registration_number, type, seats, transmission, fuel_type, price_per_day, image_url, available)
SELECT 'BMW', 'X3', 'KL07AA1004', 'LUXURY', 5, 'AUTOMATIC', 'PETROL', 8500.00, '/images/bmwx3.png', true
WHERE NOT EXISTS (SELECT 1 FROM cars WHERE registration_number = 'KL07AA1004');

INSERT INTO cars (make, model, registration_number, type, seats, transmission, fuel_type, price_per_day, image_url, available)
SELECT 'Royal Enfield', 'Classic 350', 'KL07AA1005', 'BIKE', 2, 'MANUAL', 'PETROL', 800.00, '/images/bike.png', true
WHERE NOT EXISTS (SELECT 1 FROM cars WHERE registration_number = 'KL07AA1005');

INSERT INTO cars (make, model, registration_number, type, seats, transmission, fuel_type, price_per_day, image_url, available)
SELECT 'Maruti', 'Swift', 'KL07AA1006', 'HATCHBACK', 5, 'MANUAL', 'PETROL', 1500.00, '/images/car.png', true
WHERE NOT EXISTS (SELECT 1 FROM cars WHERE registration_number = 'KL07AA1006');
