YouAndWeb_TwoToc
a2ecfb85282bb782ae96a40499c728d5c266f710
YouAndWeb_TwoToc / server / api / show / show.model.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
'use strict'; var mongoose = require('bluebird').promisifyAll(require('mongoose')); var Schema = mongoose.Schema; var ShowSchema = new Schema({ title: String, image: String, description: String, date: {type:Date, default: Date.now()}, userId: String, services: Array, info: String, location: { type: [Number], index: '2d' }, place: String, categoryId: String, active: Boolean }); // ShowSchema.set('toObject', { virtuals: true }); module.exports = mongoose.model('Show', ShowSchema); |
Commits for YouAndWeb_TwoTocserver/api/show/show.model.js
Revision | Author | Commited | Message |
---|---|---|---|
a2ecfb ... | PTKDev | Fri 20 Nov, 2015 11:22:35 +0000 | TwoToc code |