da newb
06/04/2022, 3:16 AMNeedle
06/04/2022, 3:16 AMSteve
06/06/2022, 5:18 PMNeedle
06/06/2022, 5:18 PMda newb
06/07/2022, 7:15 PMcreate table discovery.nft_contracts (
id serial primary key,
chain_id integer not null,
-- TODO(dbmikus) we should lowercase this
contract_address text not null
);
create table discovery.nfts (
id bigserial primary key,
nft_contract_id int references discovery.nft_contracts not null,
token_id util.uint256 not null
);
create table public.bookmarks (
user_id uuid references auth.users not null,
nft_id bigint references discovery.nfts (id) not null,
created_at timestamptz not null default now(),
updated_at timestamptz not null default now(),
primary key (user_id, nft_id)
);
da newb
06/07/2022, 7:16 PMchain_id, contract_address, token_id
instead of by nft_id
da newb
06/07/2022, 7:16 PMnft_id
const resp = await this.supabaseClient
.from<sbtypes.definitions['bookmarks']>(LIKES_TABLE)
.delete()
.match({ user_id: args.user_id, nft_id: args.nft_id })
Steve
06/14/2022, 9:51 PM