code: function (model) {
                return Token.create({
                  code: Token.generateCode(),
                  expire: Token.defaultExpire(),
                  ownerId: model.id
                }).then(function (data) {
                  return data;
                }).catch(function (err) {
                  res.database(err)
                });
              }
docs: Creates a token for model
  @param {Model} model
  @returns {Promise.<TResult>}