text: """Add comment to model
  
  Revision ID: db45479e2ed7
  Revises: 
  Create Date: 2020-11-05 01:11:13.656357
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = 'db45479e2ed7'
  down_revision = None
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('roles',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('name', sa.String(length=255), nullable=True),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('riders',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('ridername', sa.String(length=255), nullable=True),
      sa.Column('email', sa.String(length=255), nullable=True),
      sa.Column('role_id', sa.Integer(), nullable=True),
      sa.Column('bio', sa.String(length=255), nullable=True),
      sa.Column('profile_pic_path', sa.String(), nullable=True),
      sa.Column('pass_secure', sa.String(length=255), nullable=True),
      sa.Column('number_plate', sa.String(length=255), nullable=True),
      sa.Column('motorbike_model', sa.String(length=255), nullable=True),
      sa.ForeignKeyConstraint(['role_id'], ['roles.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_riders_email'), 'riders', ['email'], unique=True)
      op.create_index(op.f('ix_riders_number_plate'), 'riders', ['number_plate'], unique=True)
      op.create_index(op.f('ix_riders_ridername'), 'riders', ['ridername'], unique=False)
      op.create_table('users',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('username', sa.String(length=255), nullable=True),
      sa.Column('email', sa.String(length=255), nullable=True),
      sa.Column('role_id', sa.Integer(), nullable=True),
      sa.Column('bio', sa.String(length=255), nullable=True),
      sa.Column('profile_pic_path', sa.String(), nullable=True),
      sa.Column('pass_secure', sa.String(length=255), nullable=True),
      sa.ForeignKeyConstraint(['role_id'], ['roles.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_users_email'), 'users', ['email'], unique=True)
      op.create_index(op.f('ix_users_username'), 'users', ['username'], unique=False)
      op.create_table('bookings',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('first_point', sa.String(length=255), nullable=True),
      sa.Column('second_point', sa.String(length=255), nullable=True),
      sa.Column('payment', sa.String(length=255), nullable=True),
      sa.Column('mobile', sa.String(length=255), nullable=True),
      sa.Column('date', sa.DateTime(), nullable=True),
      sa.Column('user_id', sa.Integer(), nullable=False),
      sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_bookings_first_point'), 'bookings', ['first_point'], unique=False)
      op.create_index(op.f('ix_bookings_mobile'), 'bookings', ['mobile'], unique=False)
      op.create_index(op.f('ix_bookings_payment'), 'bookings', ['payment'], unique=False)
      op.create_index(op.f('ix_bookings_second_point'), 'bookings', ['second_point'], unique=False)
      op.create_table('comments',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('comment', sa.Text(), nullable=True),
      sa.Column('booking_id', sa.Integer(), nullable=True),
      sa.Column('user_id', sa.Integer(), nullable=True),
      sa.Column('date', sa.DateTime(), nullable=True),
      sa.ForeignKeyConstraint(['booking_id'], ['bookings.id'], ),
      sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('comments')
      op.drop_index(op.f('ix_bookings_second_point'), table_name='bookings')
      op.drop_index(op.f('ix_bookings_payment'), table_name='bookings')
      op.drop_index(op.f('ix_bookings_mobile'), table_name='bookings')
      op.drop_index(op.f('ix_bookings_first_point'), table_name='bookings')
      op.drop_table('bookings')
      op.drop_index(op.f('ix_users_username'), table_name='users')
      op.drop_index(op.f('ix_users_email'), table_name='users')
      op.drop_table('users')
      op.drop_index(op.f('ix_riders_ridername'), table_name='riders')
      op.drop_index(op.f('ix_riders_number_plate'), table_name='riders')
      op.drop_index(op.f('ix_riders_email'), table_name='riders')
      op.drop_table('riders')
      op.drop_table('roles')
      # ### end Alembic commands ###
  