Running migrations.

This commit is contained in:
Tom Alexander
2022-02-13 22:16:19 -05:00
parent 6e08a0c8c3
commit 111d9026c5
3 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
CREATE TABLE profile (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
UNIQUE(name)
);
CREATE TABLE watched (
id INTEGER PRIMARY KEY AUTOINCREMENT,
profile INTEGER NOT NULL,
path TEXT NOT NULL,
recorded_at DATE NOT NULL,
FOREIGN KEY(profile) REFERENCES profile(id)
);