-- Chat Switchboard — 016 Surfaces (SQLite)
-- Consolidated v0.28.0: was missing from SQLite entirely

CREATE TABLE IF NOT EXISTS surface_registry (
    id           TEXT PRIMARY KEY,
    title        TEXT NOT NULL,
    manifest     TEXT NOT NULL DEFAULT '{}',
    enabled      INTEGER NOT NULL DEFAULT 1,
    source       TEXT NOT NULL DEFAULT 'core',
    installed_at TEXT NOT NULL DEFAULT (datetime('now')),
    updated_at   TEXT NOT NULL DEFAULT (datetime('now'))
);
