     indexes       :
       username    : 'unique'
       approved    : 'unique'
+    sharedMethods :
+      static      :
+        create    : (signature Object, Function)
     schema        :
       username    :
         type      : String


  @getStats = (account, callback) ->

    username = account?.profile?.nickname

    unless username
      callback null,
        cap                : CAP
        prize              : PRIZE
        deadline           : DEADLINE
        totalApplicants    : 0
        approvedApplicants : 0
        isApplicant        : no

    JWFGH.one {username}, (err, applied)->
      return callback err  if err

      isApplicant = applied?
      isApproved  = applied?.approved
      isWinner    = applied?.winner

      JWFGH.count {}, (err, totalApplicants)->
        return callback err  if err

        JWFGH.count approved : yes, (err, approvedApplicants)->
          return callback err  if err

          callback err, {
            cap      : CAP
            prize    : PRIZE
            deadline : DEADLINE
            totalApplicants, approvedApplicants
            isApplicant, isApproved, isWinner
          }
JCampaign = require './campaign'
{Model}  = require 'bongo'

module.exports = class JWFGH extends Model

  {signature, secure} = require 'bongo'
  @share()
