diff --git a/migrations/20241115182043_init.up.sql b/migrations/20241115182043_init.up.sql index 2464da2..1f864a9 100644 --- a/migrations/20241115182043_init.up.sql +++ b/migrations/20241115182043_init.up.sql @@ -1,7 +1,7 @@ -- Add up migration script here CREATE TABLE IF NOT EXISTS records ( - id INTEGER PRIMARY KEY, - uploaded TEXT NOT NULL, + id INTEGER NOT NULL PRIMARY KEY, + uploaded TEXT NOT NULL DEFAULT (datetime('now')), file_path TEXT NOT NULL, downloads INTEGER NOT NULL DEFAULT 0, max_downloads INTEGER NOT NULL