Advertisement
Guest User

Untitled

a guest
Apr 13th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. // models/user.js
  2. const mongoose = require("mongoose")
  3. Schema = mongoose.Schema
  4.  
  5. const userSchema = new Schema({
  6. username: String,
  7. age: Number,
  8. email: String,
  9. password: String,
  10. })
  11.  
  12. module.exports = User = mongoose.model("user" , userSchema)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement