dendrite.nvim/persistence/migrations/004_custom_frontmatter.sql
Kristian f1bc87e3ad
feat: add cfm model and migration (#43)
* custom fe matter migration

* add custom_fe_matter
2026-05-30 13:12:22 +02:00

9 lines
258 B
SQL

CREATE TABLE custom_frontmatter(
note_id TEXT,
key TEXT,
value TEXT,
PRIMARY KEY (note_id, key, value),
FOREIGN KEY (note_id) REFERENCES note(id) ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS idx_cfe_key_value on custom_frontmatter(key, value);