Advertisement
Guest User

Untitled

a guest
May 25th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let mongoose = require('mongoose');
  2. let Schema = mongoose.Schema;
  3.  
  4. // create a schema
  5. let PlayerSchema = new Schema({
  6.     name: { type: String, required: true },
  7.     lastName: { type: String, required: true }
  8. });
  9.  
  10. let Player = mongoose.model('User', PlayerSchema);
  11.  
  12. module.exports = Player;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement