@classmethod
def get_last_id(cls):
    """ Return the last primary key ``id`` value
        """
    res = cls.query('id').order_by(cls.id.desc()).limit(1).first()
    if res:
        return res[0]
    return 0
