"""add_custom_steps_to_sessions

Revision ID: 4cdb5cba1aff
Revises: 008
Create Date: 2026-02-03 19:12:42.551966

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects.postgresql import JSONB


# revision identifiers, used by Alembic.
revision: str = '4cdb5cba1aff'
down_revision: Union[str, None] = '008'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    # Add custom_steps JSONB column to sessions table
    op.add_column('sessions',
        sa.Column('custom_steps', JSONB, nullable=False, server_default='[]')
    )


def downgrade() -> None:
    # Remove custom_steps column from sessions table
    op.drop_column('sessions', 'custom_steps')
