"""user_oauth表新增account_userid授权登录id，用来判断不同账号授权

Revision ID: 8922eafcd8b0
Revises: 6101ba8d5761
Create Date: 2026-06-11 16:21:17.617777
"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '8922eafcd8b0'
down_revision: Union[str, None] = '6101ba8d5761'
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('user_oauth', sa.Column('account_userid', sa.String(length=128), nullable=True, comment='授权账户登录userid，同一个用户不同的授权账户token不一样'))
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('user_oauth', 'account_userid')
    # ### end Alembic commands ###
