Guest User

Untitled

a guest
May 15th, 2017
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var mongoose = require('mongoose')
  2.  
  3. var userSchema = new mongoose.Schema({
  4.     username : {type: String},
  5.     password : {type: String},
  6.     salt : {type: String},
  7.     first_name : {type: String},
  8.     last_name : {type: String}
  9. });
  10.  
  11. module.exports = mongoose.model("User", userSchema, "users");
Add Comment
Please, Sign In to add comment