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