automated snapshot
This commit is contained in:
12
db/schema.sql
Normal file
12
db/schema.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE snapshots (
|
||||
id INTEGER PRIMARY KEY, -- 64-bit snowflake
|
||||
sid TEXT NOT NULL UNIQUE, -- base62 encoded id
|
||||
created_at INTEGER NOT NULL,
|
||||
branch TEXT NOT NULL,
|
||||
git_hash TEXT NOT NULL,
|
||||
committed BOOL NOT NULL,
|
||||
path TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX idx_snapshots_sid ON snapshots(sid);
|
||||
|
||||
Reference in New Issue
Block a user