added my lists page
This commit is contained in:
@@ -51,14 +51,14 @@ async function ensureUserDataDB(dbPath) {
|
||||
CREATE TABLE IF NOT EXISTS ListEntry (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
user_id INTEGER NOT NULL,
|
||||
anime_id INTEGER NOT NULL,
|
||||
external_id INTEGER,
|
||||
entry_id INTEGER NOT NULL,
|
||||
source TEXT NOT NULL,
|
||||
entry_type TEXT NOT NULL,
|
||||
status TEXT NOT NULL,
|
||||
progress INTEGER NOT NULL DEFAULT 0,
|
||||
score INTEGER,
|
||||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
UNIQUE (user_id, anime_id),
|
||||
UNIQUE (user_id, entry_id),
|
||||
FOREIGN KEY (user_id) REFERENCES User(id) ON DELETE CASCADE
|
||||
);
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user