Files
Compass/backend/supabase/contact.sql
MartinBraquet ed07031539 Fix primary key
2025-10-18 23:31:32 +02:00

15 lines
387 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);
-- Row Level Security
alter table contact enable row level security;