text: """empty message
  
  Revision ID: 24e8e622e932
  Revises: 
  Create Date: 2017-03-09 20:57:46.888343
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = '24e8e622e932'
  down_revision = None
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('users',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('username', sa.String(length=80), nullable=False),
      sa.Column('email', sa.String(length=80), nullable=False),
      sa.Column('password', sa.Binary(), nullable=True),
      sa.Column('created_at', sa.DateTime(), nullable=False),
      sa.Column('first_name', sa.String(length=30), nullable=True),
      sa.Column('last_name', sa.String(length=30), nullable=True),
      sa.Column('active', sa.Boolean(), nullable=True),
      sa.Column('is_admin', sa.Boolean(), nullable=True),
      sa.Column('confirmed_at', sa.DateTime(), nullable=True),
      sa.Column('last_login_at', sa.DateTime(), nullable=True),
      sa.Column('current_login_at', sa.DateTime(), nullable=True),
      sa.Column('last_login_ip', sa.String(length=80), nullable=True),
      sa.Column('current_login_ip', sa.String(length=80), nullable=True),
      sa.Column('login_count', sa.Integer(), nullable=True),
      sa.PrimaryKeyConstraint('id'),
      sa.UniqueConstraint('email'),
      sa.UniqueConstraint('username')
      )
      op.create_table('roles',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('name', sa.String(length=80), nullable=False),
      sa.Column('description', sa.String(length=255), nullable=True),
      sa.Column('user_id', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
      sa.PrimaryKeyConstraint('id'),
      sa.UniqueConstraint('name')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('roles')
      op.drop_table('users')
      # ### end Alembic commands ###
  