SessionModl.js 261 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 var mongoose = require('mongoose'); module.exports = mongoose.model('Session', { login: { // On récupèrera le nom via les passwd type: String, default: 'login' }, started: { type: Date, default: Date.now } });