-- Columnas extra de `cards` (color, locked, assignee_id, completed_at, deleted_at, tags).
-- Antes vivian en ensureColumns Go. La columna stickers va aparte en 002.
ALTER TABLE cards ADD COLUMN color        TEXT    NOT NULL DEFAULT '';
ALTER TABLE cards ADD COLUMN locked       INTEGER NOT NULL DEFAULT 0;
ALTER TABLE cards ADD COLUMN assignee_id  TEXT;
ALTER TABLE cards ADD COLUMN completed_at TEXT;
ALTER TABLE cards ADD COLUMN deleted_at   TEXT;
ALTER TABLE cards ADD COLUMN tags         TEXT    NOT NULL DEFAULT '[]';
CREATE INDEX IF NOT EXISTS idx_cards_assignee ON cards(assignee_id);
