async useInvitation (uid, code) {
    const result = await db('invitations').where('code', code).update({
      useBy: uid,
      useTime: (new Date()).getTime()
    })

    return result
  }
Use invitation code

@param {Int} uid user id
@param {String} code invitation code

@returns {Int}