···1create table blocks
2(
3- at_uri text primary key,
4 did text not null references actors (did),
5 subject text not null,
6- created_at timestamptz not null
007);
89create index blocks_did_index on blocks (did);
···1112create table follows
13(
14- at_uri text primary key,
15 did text not null references actors (did),
16 subject text not null,
17- created_at timestamptz not null
0018);
1920create index follow_did_index on follows (did);
···1create table blocks
2(
3+ rkey text not null,
4 did text not null references actors (did),
5 subject text not null,
6+ created_at timestamptz not null,
7+8+ primary key (did, rkey)
9);
1011create index blocks_did_index on blocks (did);
···1314create table follows
15(
16+ rkey text not null,
17 did text not null references actors (did),
18 subject text not null,
19+ created_at timestamptz not null,
20+21+ primary key (did, rkey)
22);
2324create index follow_did_index on follows (did);
···1create table likes
2(
3- at_uri text primary key,
4 did text not null references actors (did),
5 subject text not null,
6 subject_cid text not null,
7 created_at timestamptz not null,
8- indexed_at timestamp not null default now()
009);
1011create index likes_did_index on likes (did);
···1314create table reposts
15(
16- at_uri text primary key,
17 did text not null references actors (did),
18 post text not null,
19 post_cid text not null,
20 created_at timestamptz not null,
21- indexed_at timestamp not null default now()
0022);
2324create index reposts_did_index on reposts (did);
···1create table likes
2(
3+ rkey text not null,
4 did text not null references actors (did),
5 subject text not null,
6 subject_cid text not null,
7 created_at timestamptz not null,
8+ indexed_at timestamp not null default now(),
9+10+ primary key (did, rkey)
11);
1213create index likes_did_index on likes (did);
···1516create table reposts
17(
18+ rkey text not null,
19 did text not null references actors (did),
20 post text not null,
21 post_cid text not null,
22 created_at timestamptz not null,
23+ indexed_at timestamp not null default now(),
24+25+ primary key (did, rkey)
26);
2728create index reposts_did_index on reposts (did);