+1
-1
input.css
+1
-1
input.css
+16
internal/db/db.go
+16
internal/db/db.go
···
185
185
unique (did, session_did, session_rkey, reaction_id)
186
186
);
187
187
188
+
create table if not exists notifications (
189
+
id integer primary key autoincrement,
190
+
191
+
recipient_did text not null,
192
+
actor_did text not null,
193
+
subject_uri text not null,
194
+
195
+
state text not null default 'unread' check(state in ('unread', 'read')),
196
+
type text not null check(type in ('follow', 'reaction')),
197
+
198
+
created_at text not null default (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
199
+
200
+
foreign key (recipient_did) references profiles(did) on delete cascade,
201
+
foreign key (actor_did) references profiles(did) on delete cascade
202
+
);
203
+
188
204
create table if not exists resources (
189
205
id integer primary key autoincrement,
190
206