from sqlalchemy.dialects import mysql


class Job(Base):
    __tablename__ = 't_job'
id = Column(mysql.INTEGER(20), Sequence('%s_id_seq' % __tablename__),
    primary_key=True, nullable=False)
name = Column(String(30))
company_id = Column(Integer(20), ForeignKey('t_company.id', ondelete=
    'CASCADE'), nullable=False)
sqlalchemy Целочисленный размер столбца