-- Add 'not_started' status to letter_outgoing_approvals status check constraint
ALTER TABLE letter_outgoing_approvals 
DROP CONSTRAINT IF EXISTS letter_outgoing_approvals_status_check;

ALTER TABLE letter_outgoing_approvals 
ADD CONSTRAINT letter_outgoing_approvals_status_check 
CHECK (status IN ('not_started', 'pending', 'approved', 'rejected'));

-- Update default value for new approvals (optional, keeping 'pending' as default)
-- ALTER TABLE letter_outgoing_approvals ALTER COLUMN status SET DEFAULT 'not_started';