loopback/lib/models/session.js

22 lines
399 B
JavaScript
Raw Normal View History

2013-07-02 23:51:38 +00:00
/**
* Module Dependencies.
*/
var Model = require('../asteroid').Model
, asteroid = require('../asteroid');
/**
* Default Session properties.
*/
var properties = {
id: {type: String, required: true},
uid: {type: String},
ttl: {type: Number, ttl: true}
};
/**
* Extends from the built in `asteroid.Model` type.
*/
var Session = module.exports = Model.extend('session', properties);