Advertisement
mustyumr

schema

Sep 20th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. 'use strict';
  2.  
  3. /**
  4. * Module dependencies.
  5. */
  6. var mongoose = require('mongoose'),
  7. Schema = mongoose.Schema;
  8.  
  9.  
  10. /**
  11. * Calllog Schema
  12. */
  13.  
  14.  
  15. var CalllogSchema = new Schema({
  16. created: {
  17. type: Date,
  18. default: Date.now
  19. },
  20. displayName:{type: String, default : "xxx", trim: true },
  21. phoneNumbers:{type: String, default : "000" , trim: true }
  22.  
  23. });
  24.  
  25. mongoose.model('Calllog',CalllogSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement