Files
HKSingleParty/03_source/mobile_old.del/docker/supabase/migrations/01070_notifications.sql
2025-05-28 09:55:51 +08:00

29 lines
737 B
PL/PgSQL

-- REQ0041-home_discover_event_tab
--
BEGIN;
--
ALTER TABLE notifications ENABLE ROW LEVEL SECURITY;
CREATE POLICY "public can read notifications" ON public.notifications
FOR SELECT TO anon
USING (TRUE);
CREATE POLICY "public can write notifications" ON "public"."notifications" AS PERMISSIVE
FOR INSERT TO public
WITH CHECK (TRUE);
CREATE POLICY "public can update notifications" ON "public"."notifications" AS PERMISSIVE
FOR UPDATE TO public
USING (TRUE);
CREATE POLICY "public can delete notifications" ON "public"."notifications" AS PERMISSIVE
FOR DELETE TO public
USING (TRUE);
--
INSERT INTO notifications(content)
VALUES
('Notification 1'),
('Notification 2'),
('Notification 3');
--
COMMIT;
--