-- Add Safety Inductions modal

INSERT INTO ui_modals (name, config, tenant_id, branch_id, icon, aria_label, description)
SELECT 'Safety Inductions',
       '{"title":"Safety Inductions","header":[{"type":"button","label":"Add Induction","formName":"Safety Induction"}],"body":[{"type":"table","options":{"tableName":"safety_inductions","showGlobalSearch":false,"rowClick":"selectRecord","editFormId":10}}],"footer":[{"type":"button","label":"Close","onClick":"closeModal"}]}',
       NULL, NULL, 'fa-helmet-safety', 'Safety Inductions', 'Safety Inductions'
WHERE NOT EXISTS (SELECT 1 FROM ui_modals WHERE name = 'Safety Inductions');
