Blame view

app/models/MessModl.js 404 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
  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
278868c0   Geoffrey PREUD'HOMME   Refactorisation d...
18
19
20
21
      },
      hidden: {
          type: Boolean,
          default: false
f22cd7f3   Geoffrey PREUD'HOMME   Système de messag...
22
23
      }
  });