Advertisement
Guest User

Untitled

a guest
Apr 17th, 2018
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. const mongoose = require('mongoose');
  2. var Schema = mongoose.Schema;
  3.  
  4. var userSchema = new Schema({
  5. userName: {
  6. type: String,
  7. unique: true
  8. },
  9. password: String,
  10. fullName: String,
  11. role: String
  12. });
  13. module.exports = userSchema
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement