"""Add dispute columns to capability_requests

Revision ID: m0h1i2j3k4l5
Revises: l9g0h1i2j3k4
Create Date: 2026-03-21
"""
from alembic import op
import sqlalchemy as sa

revision = 'm0h1i2j3k4l5'
down_revision = 'l9g0h1i2j3k4'
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.add_column('capability_requests', sa.Column('dispute_reason', sa.Text(), nullable=True))
    op.add_column('capability_requests', sa.Column('disputed_by', sa.String(100), nullable=True))
    op.add_column('capability_requests', sa.Column('dispute_suggested_domain', sa.String(100), nullable=True))
    op.add_column('capability_requests', sa.Column('disputed_at', sa.DateTime(timezone=True), nullable=True))


def downgrade() -> None:
    op.drop_column('capability_requests', 'disputed_at')
    op.drop_column('capability_requests', 'dispute_suggested_domain')
    op.drop_column('capability_requests', 'disputed_by')
    op.drop_column('capability_requests', 'dispute_reason')
