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.

27 lines
682 B

  1. var mongoose = require('mongoose'),
  2. Schema = mongoose.Schema;
  3. var projectSchema = new Schema({
  4. title: { type: String },
  5. description: { type: String },
  6. icon: { type: String },
  7. users: [{ type: String }],
  8. chart: [{
  9. labels: [{ type: String }],
  10. series: [{ type: String }],
  11. data: [{type: String }]
  12. }],
  13. workStrikes: [{
  14. username: { type: String },
  15. start: { type: Date },
  16. end: { type: Date }
  17. }],
  18. dateCreation: { type: Date },
  19. github: { type: String },
  20. refnum: { type: String }
  21. })
  22. module.exports = mongoose.model('projectModel', projectSchema);
  23. //modality can be: offering, asking, package