arnaucube
arnaucube/openworktimePublic Self-hosted repository
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: { type: String },
11    dateCreation: { type: Date },
12    github: { type: String },
13    refnum: { type: String }
14})
15module.exports = mongoose.model('projectModel', projectSchema);
16
17
18//modality can be: offering, asking, package