mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 01:40:01 +00:00
183fe0a93c
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
9 lines
325 B
SQL
9 lines
325 B
SQL
|
|
ALTER TABLE public.announcements ADD COLUMN IF NOT EXISTS association_id uuid REFERENCES public.associations(id);
|
|
|
|
-- Allow anonymous users to read public announcements
|
|
CREATE POLICY "Anyone can read public announcements"
|
|
ON public.announcements FOR SELECT
|
|
TO anon
|
|
USING (visibility = 'public' AND status = 'active');
|