-- HR timesheet summary dashboard
INSERT INTO ui_modals (name, config, tenant_id, branch_id)
SELECT 'Timesheet Summary', '{"title":"Timesheet Summary","body":[{"type":"table","options":{"tableName":"timesheet_summary","tableUrl":"../api/timesheets/summary","columnsToShow":["user_id","approved_hours","rejected_hours","comments"],"addButton":false}}],"footer":[{"type":"button","label":"Close","onClick":"closeModal"}]}' , NULL, NULL
WHERE NOT EXISTS (SELECT 1 FROM ui_modals WHERE name = 'Timesheet Summary');
