-- 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;

--