diff --git a/migrations/sqlite3/001_schema_init.sql b/migrations/sqlite3/001_schema_init.sql index d86772f..053a3f2 100644 --- a/migrations/sqlite3/001_schema_init.sql +++ b/migrations/sqlite3/001_schema_init.sql @@ -5,13 +5,13 @@ PRAGMA foreign_keys = ON; CREATE TABLE IF NOT EXISTS assets( id INTEGER PRIMARY KEY, - created_at DATETIME, + created_at DATETIME DEFAULT CURRENT_TIMESTAMP, type TEXT, content TEXT); CREATE TABLE IF NOT EXISTS relations( id INTEGER PRIMARY KEY, - created_at DATETIME, + created_at DATETIME DEFAULT CURRENT_TIMESTAMP, type TEXT, from_asset_id INTEGER, to_asset_id INTEGER,