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.

19 lines
509 B

  1. var mongoose = require('mongoose'),
  2. Schema = mongoose.Schema;
  3. var userSchema = new Schema({
  4. username: { type: String },
  5. password: { type: String },
  6. description: { type: String },
  7. avatar: { type: String },
  8. mail: { type: String },
  9. phone: { type: String },
  10. telegram: { type: String },
  11. valorations: [{
  12. username: { type: String },
  13. value: { type: Number },
  14. comment: { type: String }
  15. }]
  16. })
  17. module.exports = mongoose.model('userModel', userSchema);