         type        : Object
         default     : -> {}
       tags          : (require './schema').tags
+    relationships   :
+      product       :
+        targetType  : 'JPaymentProduct'
+        as          : 'plan product'
 
   # * It seems like we're stuffing some JSON into the description field
   #   on recurly.  I think that's a really bad idea, so let's store any

      JGroup.one _id: @product.category, (err, group)->
        callback err, unless err then group.slug

  @updateCache = (selector, callback)->
    # TODO: what on earth is the point of this? C
    JPayment.updateCache(

{Module, Relationship} = require 'jraphical'

module.exports = class JPaymentPlan extends Module

  force =
    forceRefresh  : yes
