       clientId      : String
       clientIP      : String
       username      : String
-      guestId       : Number
-      terminalId    : String
       sessionBegan  :
         type        : Date
         default     : -> new Date

{Model} = require 'bongo'

class JToken extends Model

  @setSchema
    token       : String
    expires     : Date
    authority   : String
    requester   : String

module.exports = class JSession extends Model


      return callback err  if err
      return callback null, session


  @fetchSession = (clientId, callback)->

    return @createSession callback  unless clientId
