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

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