"""Add answer_reasoning, tags and notes columns to RFPDocumentQuestion

Revision ID: c2c97532f453
Revises: 3f3276aaf0c4
Create Date: 2026-03-05 01:46:24.332101

"""
from typing import Sequence, Union

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

# revision identifiers, used by Alembic.
revision: str = 'c2c97532f453'
down_revision: Union[str, Sequence[str], None] = '3f3276aaf0c4'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('rfp_document_question', sa.Column('answer_reasoning', sa.Text(), nullable=True))
    op.add_column('rfp_document_question', sa.Column('notes', sa.Text(), nullable=True))
    op.add_column('rfp_document_question', sa.Column('tags', postgresql.ARRAY(sa.String()), nullable=True))
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('rfp_document_question', 'tags')
    op.drop_column('rfp_document_question', 'notes')
    op.drop_column('rfp_document_question', 'answer_reasoning')
    # ### end Alembic commands ###
