text: """Initial Migration
  
  Revision ID: 731c969464cc
  Revises: 
  Create Date: 2020-05-10 19:02:12.819915
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = '731c969464cc'
  down_revision = None
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('user',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('username', sa.String(length=20), nullable=False),
      sa.Column('email', sa.String(length=120), nullable=False),
      sa.Column('image_file', sa.String(length=20), nullable=False),
      sa.Column('password', sa.String(length=60), nullable=False),
      sa.PrimaryKeyConstraint('id'),
      sa.UniqueConstraint('email'),
      sa.UniqueConstraint('username')
      )
      op.create_table('post',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('title', sa.String(length=100), nullable=False),
      sa.Column('date_posted', sa.DateTime(), nullable=False),
      sa.Column('content', sa.Text(), nullable=False),
      sa.Column('user_id', sa.Integer(), nullable=False),
      sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('post')
      op.drop_table('user')
      # ### end Alembic commands ###
  