Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. var mongoose = require('mongoose');
  2. var Schema = mongoose.Schema;
  3.  
  4.  
  5. var userSchema = new Schema({
  6. username: { type: String },
  7. password: { type: String },
  8. admin: { type: Boolean }
  9. });
  10.  
  11. module.exports = mongoose.model('User', userSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement