You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
672 B

  1. var mongoose = require('mongoose'),
  2. Schema = mongoose.Schema;
  3. /*var tvshowSchema = new Schema({
  4. title: { type: String },
  5. year: { type: Number },
  6. country: { type: String },
  7. poster: { type: String },
  8. seasons: { type: Number },
  9. genre: { type: String, enum:
  10. ['Drama', 'Fantasy', 'Sci-Fi', 'Thriller', 'Comedy']
  11. },
  12. summary: { type: String }
  13. });*/
  14. var userSchema = new Schema({
  15. username: { type: String },
  16. password: { type: String },
  17. description: { type: String },
  18. avatar: { type: String },
  19. mail: { type: String },
  20. admin: { type: Boolean }
  21. })
  22. module.exports = mongoose.model('userModel', userSchema);