Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose user model example

var mongoose = require('mongoose');

var UserSchema = new mongoose.Schema({
  username: String,
  email: String,
  bio: String,
  image: String,
  hash: String,
  salt: String
}, {timestamps: true});

mongoose.model('User', UserSchema);
Source by thinkster.io #
 
PREVIOUS NEXT
Tagged: #mongoose #user #model
ADD COMMENT
Topic
Name
4+3 =