···11+create table bookmarks
22+(
33+ did text not null references actors (did),
44+ rkey text,
55+ subject text not null,
66+ subject_cid text,
77+ subject_type text not null,
88+ tags text[] not null default ARRAY []::text[],
99+1010+ created_at timestamptz not null default now(),
1111+1212+ primary key (did, subject)
1313+);
1414+1515+create index bookmarks_rkey_index on bookmarks (rkey);
1616+create index bookmarks_subject_index on bookmarks (subject);
1717+create index bookmarks_subject_type_index on bookmarks (subject_type);
1818+create index bookmarks_tags_index on bookmarks using gin (tags);
1919+create unique index bookmarks_rkey_ui on bookmarks (did, rkey);