"""create Sekolah

Revision ID: 516eba5a44c9
Revises: 
Create Date: 2020-12-29 14:32:47.986415

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '516eba5a44c9'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('sekolah',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('nama', sa.String(), nullable=False),
    sa.Column('email', sa.String(), nullable=True),
    sa.Column('server_dapodik', sa.String(), nullable=True),
    sa.Column('email_dapodik', sa.String(), nullable=False),
    sa.Column('email_simdak', sa.String(), nullable=False),
    sa.Column('password', sa.String(), nullable=True),
    sa.Column('token', sa.String(), nullable=True),
    sa.Column('created_at', sa.DateTime(), server_default=sa.text('(CURRENT_TIMESTAMP)'), nullable=False),
    sa.Column('updated_at', sa.DateTime(), server_default=sa.text('(CURRENT_TIMESTAMP)'), nullable=False),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


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