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.

17 lines
478 B

8 years ago
8 years ago
  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. mail: { type: String },
  8. avatar: { type: String },
  9. github: { type: String },
  10. web: { type: String },
  11. projects: { type: String },
  12. connected: { type: Boolean },
  13. working: { type: Boolean }
  14. })
  15. module.exports = mongoose.model('userModel', userSchema);