-- Seed data for quick start
INSERT INTO companies (name) VALUES ('Acme Inc'), ('Globex Corp');

INSERT INTO departments (company_id, name) VALUES 
(1, 'Engineering'), (1, 'HR'), (2, 'Operations');

-- Admin user for Acme
INSERT INTO employees (company_id, department_id, first_name, last_name, name, email, phone, role, password_hash, is_active)
VALUES (1, 1, 'Admin', 'User', 'Admin User', 'admin@acme.com', '1234567890', 'ADMIN', '$2a$10$QkHSMsQ8f3b5TqYzAnKQ5u5g1I5lS2aJjVQhCkLr9dUA4N3G0KJCa', 1);
-- Password for above is: Admin@123 (bcrypt hash precomputed)

-- Sites for geofencing
INSERT INTO sites (company_id, name, latitude, longitude, radius_m) VALUES 
(1, 'Acme HQ', 37.4220, -122.0841, 200),
(2, 'Globex Warehouse', 40.7128, -74.0060, 150);
