attach favorites to logged in user

This commit is contained in:
cwilvx
2024-05-25 15:12:44 +03:00
parent 300c8eb30b
commit 0b8a5e92f5
14 changed files with 128 additions and 38 deletions
+3 -1
View File
@@ -16,7 +16,9 @@ CREATE TABLE IF NOT EXISTS favorites (
id integer PRIMARY KEY,
hash text not null,
type text not null,
timestamp integer not null default 0
timestamp integer not null default 0,
userid integer not null,
foreign key (userid) references users(id) on delete cascade
);
CREATE TABLE IF NOT EXISTS settings (