Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com

feat(db): add doc_steps table for prosemirror-collab step log

+12
+12
migrations/006_doc_steps.sql
··· 1 + -- migrations/006_doc_steps.sql 2 + CREATE TABLE IF NOT EXISTS doc_steps ( 3 + id INTEGER PRIMARY KEY AUTOINCREMENT, 4 + doc_rkey TEXT NOT NULL, 5 + version INTEGER NOT NULL, 6 + step_json TEXT NOT NULL, 7 + client_id TEXT NOT NULL, 8 + created_at DATETIME DEFAULT CURRENT_TIMESTAMP, 9 + UNIQUE(doc_rkey, version) 10 + ); 11 + 12 + CREATE INDEX IF NOT EXISTS idx_doc_steps_rkey_version ON doc_steps(doc_rkey, version);