-- Module Builder modal for clock adjustments
INSERT INTO ui_modals (name, config, tenant_id, branch_id)
SELECT 'Clock Adjustment', '{"title":"Clock Adjustment","body":[{"type":"table","options":{"tableName":"time_clocks","searchInputTypes":{"clocked_at":"datetime-local","approval_comment":"text"},"columnsToShow":["user_id","clock_type","clocked_at","approval_comment"],"addButton":false}}],"footer":[{"type":"button","label":"Close","onClick":"closeModal"}]}' , NULL, NULL
WHERE NOT EXISTS (SELECT 1 FROM ui_modals WHERE name = 'Clock Adjustment');
