ALTER TABLE sessions ADD COLUMN state TEXT NOT NULL DEFAULT 'normal'
    CHECK (state IN ('normal', 'pinned', 'archived'));
