text: """create_ingredients_table
  
  Revision ID: ed5e115c2000
  Revises: f97e78bf4f11
  Create Date: 2021-01-06 10:04:30.835022
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = 'ed5e115c2000'
  down_revision = 'f97e78bf4f11'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('ingredients',
                      sa.Column('id', sa.Integer(), nullable=False),
                      sa.Column('name', sa.String(length=255), nullable=False),
                      sa.Column('type_id', sa.Integer(), nullable=False),
                      sa.Column('created_at', sa.DateTime(),
                                server_default=sa.text('now()'), nullable=True),
                      sa.Column('updated_at', sa.DateTime(),
                                server_default=sa.text('now()'), nullable=True),
                      sa.ForeignKeyConstraint(
                          ['type_id'], ['ingredient_types.id'], ),
                      sa.PrimaryKeyConstraint('id')
                      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('ingredients')
      # ### end Alembic commands ###
  