"""intial

Revision ID: 90f5c336f97b
Revises:
Create Date: 2025-08-28 15:39:41.345151

"""

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "90f5c336f97b"
down_revision = None
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table(
        "perun_user",
        sa.Column("id", sa.Integer(), nullable=False),
        sa.Column("facility", sa.String(), nullable=False),
        sa.Column("perun_id", sa.String(), nullable=False),
        sa.Column("login_mu", sa.String(), nullable=False),
        sa.Column("scoped_login_mu", sa.String(), nullable=False),
        sa.Column("display_name", sa.String(), nullable=False),
        sa.Column("preferred_mail", sa.String(), nullable=False),
        sa.PrimaryKeyConstraint("id"),
        sa.UniqueConstraint("login_mu", "facility", name="perun_propagation_user_facility_unique"),
        schema="public",
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table("perun_user", schema="public")
    # ### end Alembic commands ###
