Files
Compass/backend/supabase/contact.sql
MartinBraquet 8e2fa36d0e Fix
2025-11-11 21:07:40 +01:00

15 lines
406 B
SQL

create table if not exists
contact (
id text default uuid_generate_v4 () not null primary key,
created_time timestamp with time zone default now(),
user_id text,
content jsonb
);
-- Foreign Keys
alter table contact
add constraint contact_user_id_fkey foreign key (user_id) references users (id) on delete set null;
-- Row Level Security
alter table contact enable row level security;