"""create virtual_card_purchases

Revision ID: ee29c4e46e89
Revises: 13d061734f56
Create Date: 2025-11-15 10:59:58.226531

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'ee29c4e46e89'
down_revision: Union[str, None] = '13d061734f56'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('virtual_cards', sa.Column('is_default', sa.Boolean(), nullable=False))
    op.alter_column('virtual_cards', 'user_id',
               existing_type=sa.VARCHAR(),
               nullable=True)
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('virtual_cards', 'user_id',
               existing_type=sa.VARCHAR(),
               nullable=False)
    op.drop_column('virtual_cards', 'is_default')
    # ### end Alembic commands ###
