Files
sumi/db/schema.sql
2025-12-15 01:25:28 -06:00

13 lines
387 B
SQL

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);