Added web interface, crawler and more work on local storage

This commit is contained in:
simon
2018-02-21 20:07:59 -05:00
parent de0a835ecd
commit 165844e4ca
24 changed files with 1346 additions and 235 deletions

View File

@@ -4,6 +4,7 @@ PRAGMA FOREIGN_KEYS = ON;
CREATE TABLE Directory (
id INTEGER PRIMARY KEY AUTOINCREMENT,
path TEXT UNIQUE,
name TEXT,
enabled BOOLEAN
);
@@ -19,10 +20,11 @@ CREATE TABLE Task (
-- You can set an option on a directory to change the crawler's behavior
CREATE TABLE Option (
name STRING,
id INTEGER PRIMARY KEY AUTOINCREMENT,
key TEXT,
value TEXT,
directory_id INTEGER,
FOREIGN KEY (directory_id) REFERENCES Directory(id),
PRIMARY KEY (name, directory_id)
FOREIGN KEY (directory_id) REFERENCES Directory(id)
);
-- User accounts