engine.execute(
    """
create table accnt (
    id integer primary key,
    code varchar(20),
    def varchar(50)
)
"""
    )
Base = declarative_base()
Base.metadata.bind = engine


class Accnt(Base):
    __tablename__ = 'accnt'
How to override a column name in sqlalchemy using reflection and descriptive syntax