CREATE TABLE IF NOT EXISTS workflows (
    id              TEXT PRIMARY KEY,
    name            TEXT NOT NULL,
    prompt_template TEXT NOT NULL DEFAULT '',
    dod_schema_json TEXT NOT NULL DEFAULT '[]',
    created_at      INTEGER NOT NULL
);

CREATE INDEX IF NOT EXISTS idx_workflows_name ON workflows(name);
