init commit,

This commit is contained in:
louiscklaw
2025-05-28 09:55:51 +08:00
commit efe70ceb69
8042 changed files with 951668 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
-- 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;
--