delete project and join project added (frontend and backend)

This commit is contained in:
nau
2016-09-08 23:56:46 +02:00
parent 3df8ff8c70
commit 48eb01dd5e
5 changed files with 104 additions and 17 deletions

View File

@@ -2,17 +2,17 @@ var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var travelSchema = new Schema({
var projectSchema = new Schema({
title: { type: String },
description: { type: String },
icon: { type: String },
users: { type: String },
users: [{ type: String }],
chart: { type: String },
dateCreation: { type: Date },
github: { type: String },
refnum: { type: String }
})
module.exports = mongoose.model('projectModel', travelSchema);
module.exports = mongoose.model('projectModel', projectSchema);
//modality can be: offering, asking, package