-- Hammerhead Workspace - Patch 5: Add Scheduling department
-- Safe to re-run (checks for existing name first).

INSERT INTO `departments` (`name`, `code`, `is_active`)
SELECT 'Scheduling', 'scheduling', 1
WHERE NOT EXISTS (SELECT 1 FROM `departments` WHERE `code` = 'scheduling');
