Files
Compass/backend/supabase/love_waitlist.sql
2025-09-13 13:14:56 +02:00

17 lines
506 B
SQL

CREATE TABLE IF NOT EXISTS love_waitlist (
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
created_time TIMESTAMPTZ DEFAULT now() NOT NULL,
email TEXT NOT NULL
);
-- Row Level Security
ALTER TABLE love_waitlist ENABLE ROW LEVEL SECURITY;
-- Policies
DROP POLICY IF EXISTS "anon insert" ON love_waitlist;
CREATE POLICY "anon insert" ON love_waitlist
FOR INSERT WITH CHECK (true);
-- Indexes
-- Primary key automatically creates a unique index on id, so no additional index is needed.