"""removed unique=True for deparatemt in user model

Revision ID: b79c057d0bfc
Revises: 6d31ffcb8ae0
Create Date: 2025-05-03 23:01:57.688566

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'b79c057d0bfc'
down_revision: Union[str, None] = '6d31ffcb8ae0'
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.drop_constraint('users_department_key', 'users', type_='unique')
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_unique_constraint('users_department_key', 'users', ['department'])
    # ### end Alembic commands ###
