"""Allow JSON specialist input and results for interactions

Revision ID: 2370a17da7cb
Revises: 0c347651837c
Create Date: 2024-11-07 14:33:57.678861

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

# revision identifiers, used by Alembic.
revision = '2370a17da7cb'
down_revision = '0c347651837c'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('interaction', sa.Column('specialist_arguments', postgresql.JSONB(astext_type=sa.Text()), nullable=True))
    op.add_column('interaction', sa.Column('specialist_results', postgresql.JSONB(astext_type=sa.Text()), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('interaction', 'specialist_results')
    op.drop_column('interaction', 'specialist_arguments')
    # ### end Alembic commands ###
