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

var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var projectSchema = new Schema({
title: { type: String },
description: { type: String },
icon: { type: String },
users: [{
username: { type: String },
time: { type: Number }
}],
chart: [{
labels: [{ type: String }],
series: [{ type: String }],
data: [{type: String }]
}],
workStrikes: [{
username: { type: String },
start: { type: Date },
end: { type: Date },
time: { type: Number }
}],
dateCreation: { type: Date },
github: { type: String },
refnum: { type: String }
})
module.exports = mongoose.model('projectModel', projectSchema);
//modality can be: offering, asking, package