Advertisement
Guest User

Untitled

a guest
May 9th, 2017
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import mongoose from 'mongoose';
  2.  
  3. let Schema = mongoose.Schema;
  4.  
  5.  
  6. let user = new Schema({
  7. name: String,
  8. password: String,
  9. admin: Boolean
  10. });
  11.  
  12.  
  13. export const User = mongoose.model('User', user);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement