package storage // migration003 — notes table. const migration003 = ` CREATE TABLE IF NOT EXISTS notes ( node_id TEXT PRIMARY KEY REFERENCES nodes(id), file_id TEXT NOT NULL REFERENCES files(id), format TEXT NOT NULL DEFAULT 'markdown', original_format TEXT NULL, encrypted INTEGER NOT NULL DEFAULT 0 ); `