-- +goose Up
ALTER TABLE student_answers
    ADD COLUMN solve_mode TEXT NOT NULL DEFAULT 'just_answer',
    ADD COLUMN working_steps TEXT,
    ADD CONSTRAINT student_answers_solve_mode_check
        CHECK (solve_mode IN ('just_answer', 'step_by_step', 'solve_together', 'handwritten'));

-- +goose Down
ALTER TABLE student_answers
    DROP CONSTRAINT IF EXISTS student_answers_solve_mode_check,
    DROP COLUMN IF EXISTS working_steps,
    DROP COLUMN IF EXISTS solve_mode;
