"""user_oauth表新增可授权数量字段

Revision ID: 9ac2212e1b8e
Revises: ed3823a24b8e
Create Date: 2026-06-10 15:43:47.389442
"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '9ac2212e1b8e'
down_revision: Union[str, None] = 'ed3823a24b8e'
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_app', sa.Column('count', sa.BigInteger(), nullable=False, comment='应用最大可以授权多少个用户'))
    # ### end Alembic commands ###


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