"""Add teachers table

Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2021-12-04 13:18:57.806109

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('teachers',
    sa.Column('user_id', sa.Integer(), nullable=False),
    sa.Column('position', sa.String(), nullable=True),
    sa.ForeignKeyConstraint(['user_id'], ['users.id'], name='teachers_users_id_fk', ondelete='CASCADE'),
    sa.PrimaryKeyConstraint('user_id', name='teachers_users_id_pk')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('teachers')
    # ### end Alembic commands ###

"""Add teachers table

Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2021-12-04 13:18:57.806109

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('teachers',
    sa.Column('user_id', sa.Integer(), nullable=False),
    sa.Column('position', sa.String(), nullable=True),
    sa.ForeignKeyConstraint(['user_id'], ['users.id'], name='teachers_users_id_fk', ondelete='CASCADE'),
    sa.PrimaryKeyConstraint('user_id', name='teachers_users_id_pk')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('teachers')
    # ### end Alembic commands ###

Add teachers table  Revision ID: <KEY> Revises: <PASSWORD> Create Date: 2021-12-04 13:18:57.806109 # revision identifiers, used by Alembic. # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ### # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ###