"""Create results table

Revision ID: 925304b8e52f
Revises: 
Create Date: 2021-03-04 17:38:35.684294

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '925304b8e52f'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('results',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('impostor', sa.String(length=50), nullable=False),
    sa.Column('win_flg', sa.Boolean(), nullable=False),
    sa.Column('posted_user_name', sa.String(length=50), nullable=False),
    sa.Column('posted_user_id', sa.String(length=50), nullable=False),
    sa.Column('group_id', sa.String(length=50), 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('results')
    # ### end Alembic commands ###
