MessModl.js 337 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 var mongoose = require('mongoose'); module.exports = mongoose.model('Mess', { content: { type: String, default: "Contenu du message" }, login: { type: String, default: 'login' }, conv: { type: String, }, date: { type: Date, default: Date.now } });