"""updated users table

Revision ID: 998020e7ee14
Revises: ffdc0a98111c
Create Date: 2021-03-30 12:51:10.460054

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '998020e7ee14'
down_revision = 'ffdc0a98111c'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('users', sa.Column('first_name', sa.String(length=50), nullable=False))
    op.add_column('users', sa.Column('last_name', sa.String(length=100), nullable=False))
    op.add_column('users', sa.Column('buying_power', sa.Float(), nullable=True, default=1000.01))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('users', 'buying_power')
    op.drop_column('users', 'last_name')
    op.drop_column('users', 'first_name')
    # ### end Alembic commands ###
