···11+CREATE TABLE IF NOT EXISTS columns (
22+ id TEXT PRIMARY KEY,
33+ account_did TEXT NOT NULL,
44+ kind TEXT NOT NULL CHECK(kind IN ('feed', 'explorer', 'diagnostics')),
55+ config TEXT NOT NULL,
66+ position INTEGER NOT NULL,
77+ width TEXT NOT NULL DEFAULT 'standard' CHECK(width IN ('narrow', 'standard', 'wide')),
88+ created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
99+);
1010+1111+CREATE INDEX IF NOT EXISTS columns_account_did ON columns(account_did, position);