Git Repository Public Repository

YouAndWeb_TwoToc

URLs

Copy to Clipboard
 
a98e8d4c8be3c9266abcdd007f47a6b1c3ed9599
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_TwoToc.fr-KzWVa7/twotoc/server/api/show/show.model.js

Diff revisions: vs.
Revision Author Commited Message
a98e8d ... FSinnona picture FSinnona Thu 26 Nov, 2015 13:26:45 +0000

Creazione organizza