ALTER TABLE statuses ADD COLUMN is_terminal TINYINT(1) DEFAULT 0;

UPDATE statuses SET is_terminal = 1 WHERE code IN ('approved', 'declined');