Guest User

Untitled

a guest
Aug 6th, 2018
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. const mongoose = require("mongoose");
  2. const schema = mongoose.Schema;
  3.  
  4. const UserSchema = new schema({
  5. name:{
  6. type:String,
  7. required:true
  8. },
  9. email:{
  10. type:String,
  11. required:true
  12. },
  13. password:{
  14. type:String,
  15. required:true
  16. },
  17. created_at:{
  18. type:Date,
  19. default:Date.now
  20. }
  21. });
  22.  
  23. module.exports = User = mongoose.model("user",UserSchema);
Add Comment
Please, Sign In to add comment