"""Añadir columnas _details y tariff_type a InvoiceLead

Revision ID: f5c95e0ef5fe
Revises: 92a4d75ffc55
Create Date: 2025-06-13 14:21:50.106648

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'f5c95e0ef5fe'
down_revision = '92a4d75ffc55'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('invoice_leads', schema=None) as batch_op:
        batch_op.add_column(sa.Column('_details', sa.Text(), nullable=True))
        batch_op.add_column(sa.Column('tariff_type', sa.String(length=20), nullable=True))

    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    with op.batch_alter_table('invoice_leads', schema=None) as batch_op:
        batch_op.drop_column('tariff_type')
        batch_op.drop_column('_details')

    # ### end Alembic commands ###
