#Need help to create a table for "bookmarks" in supabase for Converso Saas App Project

4 messages · Page 1 of 1 (latest)

upbeat saffron
#

Never mind I figured out 🙂

#

Just run this in SQL Editor in supabase:

create table public.bookmarks ( id uuid not null default gen_random_uuid (), created_at timestamp with time zone not null default now(), user_id character varying null, companion_id uuid null default gen_random_uuid (), constraint bookmarks_pkey primary key (id), constraint bookmarks_companion_id_fkey foreign KEY (companion_id) references companions (id) on update CASCADE on delete CASCADE ) TABLESPACE pg_default;