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.

16 lines
446 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. })
  14. module.exports = mongoose.model('userModel', userSchema);