Announcements and IT Job Checklist

This commit is contained in:
2026-03-21 18:51:04 +08:00
parent 7d9096963a
commit 3fb6fd5c93
19 changed files with 2367 additions and 37 deletions
@@ -0,0 +1,13 @@
-- ============================================================
-- Grant EXECUTE on IT Job RPCs to the authenticated role and
-- enable REPLICA IDENTITY FULL on tasks for realtime updates.
-- ============================================================
GRANT EXECUTE ON FUNCTION public.mark_it_job_printed(uuid, uuid) TO authenticated;
GRANT EXECUTE ON FUNCTION public.unmark_it_job_printed(uuid) TO authenticated;
-- Enable REPLICA IDENTITY FULL on the tasks table so that
-- Supabase Realtime UPDATE events carry the full new row data,
-- including the newly added it_job_printed / it_job_printed_at /
-- it_job_received_by_id columns.
ALTER TABLE public.tasks REPLICA IDENTITY FULL;