-- Partial leave review: per-day approve/reject decisions (checkboxes in admin UI).

alter table public.leave_applications
  add column if not exists review_day_decisions jsonb default null;

alter table public.leave_applications
  drop constraint if exists leave_applications_status_check;

alter table public.leave_applications
  add constraint leave_applications_status_check
  check (status in ('pending', 'approved', 'rejected', 'partial'));
