-- seed.sql
INSERT INTO courts (code, name) VALUES ('A','Cancha A'), ('B','Cancha B')
ON DUPLICATE KEY UPDATE name=VALUES(name);

INSERT INTO settings (id, price_per_hour, reservations_disabled) VALUES (1, 350, 0)
ON DUPLICATE KEY UPDATE price_per_hour=VALUES(price_per_hour), reservations_disabled=VALUES(reservations_disabled);

-- Admin user: admin / squMMx2#.
INSERT INTO users (role, name, username, password_hash) VALUES
('admin', 'Administrador', 'admin', '$2b$10$ni4dQh/MQ93f3xAIQmxxM.2r5nCUqNw9pmFfOuDKunJbsfXWPw9Tm')
ON DUPLICATE KEY UPDATE name=VALUES(name), password_hash=VALUES(password_hash);
