Blame view

app/models/MessModl.js 337 Bytes
f22cd7f3   Geoffrey PREUD'HOMME   Système de messag...
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
      }
  });