text: """Adicionado Produto, Categoria e Relacionamentos
  
  Revision ID: a3f553c06e1c
  Revises: ed9743664e9c
  Create Date: 2022-01-09 17:39:17.887043
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = 'a3f553c06e1c'
  down_revision = 'ed9743664e9c'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('categorias',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('tipo', sa.VARCHAR(length=45), nullable=False),
      sa.Column('created_at', sa.TIMESTAMP(), nullable=True),
      sa.Column('updated_at', sa.TIMESTAMP(), nullable=True),
      sa.PrimaryKeyConstraint('id'),
      sa.UniqueConstraint('tipo')
      )
      op.create_table('produtos',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('nome', sa.VARCHAR(length=45), nullable=False),
      sa.Column('vlr_unit', sa.DECIMAL(precision=4, scale=2), nullable=False),
      sa.Column('tamanho', sa.VARCHAR(length=45), nullable=False),
      sa.Column('descricao', sa.VARCHAR(length=255), nullable=False),
      sa.Column('ingredientes', sa.VARCHAR(length=255), nullable=True),
      sa.Column('created_at', sa.TIMESTAMP(), nullable=False),
      sa.Column('updated_at', sa.TIMESTAMP(), nullable=True),
      sa.Column('categoria_id', sa.Integer(), nullable=False),
      sa.ForeignKeyConstraint(['categoria_id'], ['categorias.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('produtos')
      op.drop_table('categorias')
      # ### end Alembic commands ###
  