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.

31 lines
773 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: [{
  8. username: { type: String },
  9. time: { type: Number }
  10. }],
  11. chart: [{
  12. labels: [{ type: String }],
  13. series: [{ type: String }],
  14. data: [{type: String }]
  15. }],
  16. workStrikes: [{
  17. username: { type: String },
  18. start: { type: Date },
  19. end: { type: Date },
  20. time: { type: Number }
  21. }],
  22. dateCreation: { type: Date },
  23. github: { type: String },
  24. refnum: { type: String }
  25. })
  26. module.exports = mongoose.model('projectModel', projectSchema);
  27. //modality can be: offering, asking, package