@declared_attr
    def __table_args__(cls):
        return (Index('idx_%s_login_local' % cls.__tablename__,
                      'login', 'local', unique=True),
                {'mysql_engine': 'InnoDB',
                 'mysql_charset': 'utf8',
                 }
                )
dataset/ETHPy150Open mardiros/pyshop/pyshop/models.py/User.__table_args__/original