"""empty message

Revision ID: 7a60fc798c62
Revises: 
Create Date: 2021-12-29 20:22:30.274621

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "7a60fc798c62"
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table(
        "administrators",
        sa.Column("id", sa.Integer(), nullable=False),
        sa.Column("first_name", sa.String(length=255), nullable=False),
        sa.Column("last_name", sa.String(length=255), nullable=False),
        sa.Column("email", sa.String(length=255), nullable=False),
        sa.Column("phone", sa.String(length=13), nullable=False),
        sa.Column("password", sa.String(length=36), nullable=False),
        sa.Column(
            "role",
            sa.Enum("student", "coach", "admin", name="roletype"),
            nullable=False,
        ),
        sa.PrimaryKeyConstraint("id"),
        sa.UniqueConstraint("email"),
    )
    op.create_table(
        "coaches",
        sa.Column("id", sa.Integer(), nullable=False),
        sa.Column("first_name", sa.String(length=255), nullable=False),
        sa.Column("last_name", sa.String(length=255), nullable=False),
        sa.Column("email", sa.String(length=255), nullable=False),
        sa.Column("phone", sa.String(length=13), nullable=False),
        sa.Column("password", sa.String(length=36), nullable=False),
        sa.Column("belt", sa.String(length=255), nullable=True),
        sa.Column(
            "role",
            sa.Enum("student", "coach", "admin", name="roletype"),
            nullable=False,
        ),
        sa.PrimaryKeyConstraint("id"),
        sa.UniqueConstraint("email"),
    )
    op.create_table(
        "students",
        sa.Column("id", sa.Integer(), nullable=False),
        sa.Column("first_name", sa.String(length=255), nullable=False),
        sa.Column("last_name", sa.String(length=255), nullable=False),
        sa.Column("email", sa.String(length=255), nullable=False),
        sa.Column("phone", sa.String(length=13), nullable=False),
        sa.Column("password", sa.String(length=36), nullable=False),
        sa.Column("belt", sa.String(length=255), nullable=True),
        sa.Column(
            "role",
            sa.Enum("student", "coach", "admin", name="roletype"),
            nullable=False,
        ),
        sa.PrimaryKeyConstraint("id"),
        sa.UniqueConstraint("email"),
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table("students")
    op.drop_table("coaches")
    op.drop_table("administrators")
    # ### end Alembic commands ###
