Blame view

app/models/nerd.js 495 Bytes
894b21fa   Geoffrey PREUD'HOMME   Application MEAN ...
1
2
3
4
5
6
7
  // app/models/nerd.js
  // grab the mongoose module
  var mongoose = require('mongoose');
  
  // define our nerd model
  // module.exports allows us to pass this to other files when it is called
  module.exports = mongoose.model('Nerd', {
8ae24f57   Geoffrey PREUD'HOMME   Liste des membres
8
      login: {
894b21fa   Geoffrey PREUD'HOMME   Application MEAN ...
9
          type: String,
8ae24f57   Geoffrey PREUD'HOMME   Liste des membres
10
11
12
13
14
15
16
17
18
19
20
21
22
          default: 'login'
      },
      section: {
          type: String,
          default: 'IMA'
      },
      promo: {
          type: Number,
          default: 2017
      },
      role: {
          type: String,
          default: 'Membre'
894b21fa   Geoffrey PREUD'HOMME   Application MEAN ...
23
24
      }
  });