work and stopwork system done, project time data structure runs ok

This commit is contained in:
nau
2016-09-09 19:24:13 +02:00
parent a0f6d4abba
commit 0eeb2cab2f
5 changed files with 68 additions and 9 deletions

View File

@@ -6,7 +6,10 @@ var projectSchema = new Schema({
title: { type: String },
description: { type: String },
icon: { type: String },
users: [{ type: String }],
users: [{
username: { type: String },
time: { type: Number }
}],
chart: [{
labels: [{ type: String }],
series: [{ type: String }],
@@ -15,7 +18,8 @@ var projectSchema = new Schema({
workStrikes: [{
username: { type: String },
start: { type: Date },
end: { type: Date }
end: { type: Date },
time: { type: Number }
}],
dateCreation: { type: Date },
github: { type: String },