The following code:
class Registry(db.Model): __tablename__ = \'registry\' __table_args__ = {\'schema\': DataBaseConfig.SCHEMA} id = db.Column(db.In