text: /**
   * Created by ycong on 2017/8/1.
   */
  
  /*
    activityUploading model
   */
  
  const mongoose = require('mongoose');
  
  const Schema = mongoose.Schema;
  
  const activityUploadingSchema = new Schema({
    createrId: {type: Schema.Types.ObjectId, required: true, ref: 'user'},
    activityId: {type: Schema.Types.ObjectId, required: true, ref: 'activity'},
    title: {type: String, required: true},
    description: {type: String, default: ''},
    images: [String],
    audio: {type: String, default: ''},
    video: {type: String, default: ''},
    createTime: {type: Date, default: Date.now},
    postNum: {type: Number, default: 0}
  });
  
  module.exports = mongoose.model('activityUploading', activityUploadingSchema);
  