text: """empty message
  
  Revision ID: be69f8262276
  Revises: 
  Create Date: 2021-04-08 15:49:18.990082
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = 'be69f8262276'
  down_revision = None
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('author',
      sa.Column('created_at', sa.DateTime(), nullable=False),
      sa.Column('updated_at', sa.DateTime(), nullable=True),
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('first_name', sa.String(length=64), nullable=True),
      sa.Column('last_name', sa.String(length=64), nullable=True),
      sa.Column('email', sa.String(length=120), nullable=True),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_author_email'), 'author', ['email'], unique=True)
      op.create_table('customer',
      sa.Column('created_at', sa.DateTime(), nullable=False),
      sa.Column('updated_at', sa.DateTime(), nullable=True),
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('first_name', sa.String(length=64), nullable=True),
      sa.Column('last_name', sa.String(length=64), nullable=True),
      sa.Column('email', sa.String(length=120), nullable=True),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_customer_email'), 'customer', ['email'], unique=True)
      op.create_table('book',
      sa.Column('created_at', sa.DateTime(), nullable=False),
      sa.Column('updated_at', sa.DateTime(), nullable=True),
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('title', sa.String(length=300), nullable=True),
      sa.Column('rent_charge', sa.Float(precision=5, asdecimal=2), nullable=True),
      sa.Column('timestamp', sa.DateTime(), nullable=True),
      sa.Column('author_id', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['author_id'], ['author.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_book_timestamp'), 'book', ['timestamp'], unique=False)
      op.create_table('rental',
      sa.Column('created_at', sa.DateTime(), nullable=False),
      sa.Column('updated_at', sa.DateTime(), nullable=True),
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('customer_id', sa.Integer(), nullable=True),
      sa.Column('book_id', sa.Integer(), nullable=True),
      sa.Column('duration', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['book_id'], ['book.id'], ),
      sa.ForeignKeyConstraint(['customer_id'], ['customer.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('rental')
      op.drop_index(op.f('ix_book_timestamp'), table_name='book')
      op.drop_table('book')
      op.drop_index(op.f('ix_customer_email'), table_name='customer')
      op.drop_table('customer')
      op.drop_index(op.f('ix_author_email'), table_name='author')
      op.drop_table('author')
      # ### end Alembic commands ###
  