text: """empty message
  
  Revision ID: ac18eaa31ef1
  Revises: 
  Create Date: 2020-05-01 10:50:26.858981
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = 'ac18eaa31ef1'
  down_revision = None
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('room',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('title', sa.String(), nullable=False),
      sa.Column('description', sa.String(), nullable=True),
      sa.Column('exit_north_room_id', sa.Integer(), nullable=True),
      sa.Column('exit_south_room_id', sa.Integer(), nullable=True),
      sa.Column('exit_west_room_id', sa.Integer(), nullable=True),
      sa.Column('exit_east_room_id', sa.Integer(), nullable=True),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('shop',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('name', sa.String(), nullable=False),
      sa.PrimaryKeyConstraint('id'),
      sa.UniqueConstraint('name')
      )
      op.create_table('item',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('name', sa.String(length=30), nullable=False),
      sa.Column('room_location', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['room_location'], ['room.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('player',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('username', sa.String(), nullable=False),
      sa.Column('password', sa.String(), nullable=False),
      sa.Column('location_room_id', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['location_room_id'], ['room.id'], ),
      sa.PrimaryKeyConstraint('id'),
      sa.UniqueConstraint('username')
      )
      op.create_table('player_item',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('player_id', sa.Integer(), nullable=False),
      sa.Column('item_id', sa.Integer(), nullable=False),
      sa.ForeignKeyConstraint(['item_id'], ['item.id'], ),
      sa.ForeignKeyConstraint(['player_id'], ['player.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('player_item')
      op.drop_table('player')
      op.drop_table('item')
      op.drop_table('shop')
      op.drop_table('room')
      # ### end Alembic commands ###
  