text: """Add Company, job and Responsable Model
  
  Revision ID: fdcafcc14967
  Revises: 3184ecc632e3
  Create Date: 2021-04-26 22:27:26.562705
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = 'fdcafcc14967'
  down_revision = '3184ecc632e3'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('company',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('name', sa.String(length=255), nullable=False),
      sa.Column('description', sa.String(length=255), nullable=False),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('job',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('title', sa.String(length=255), nullable=False),
      sa.Column('description', sa.String(length=255), nullable=False),
      sa.Column('start', sa.DateTime(), nullable=False),
      sa.Column('closing', sa.DateTime(), nullable=False),
      sa.Column('status', sa.String(length=25), nullable=False),
      sa.Column('company_id', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['company_id'], ['company.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('responsable',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('user_id', sa.String(length=255), nullable=False),
      sa.Column('company_id', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['company_id'], ['company.id'], ),
      sa.ForeignKeyConstraint(['user_id'], ['users.name'], ),
      sa.PrimaryKeyConstraint('id')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('responsable')
      op.drop_table('job')
      op.drop_table('company')
      # ### end Alembic commands ###
  