text: 'use strict';
  
  const mongoose = require('mongoose');
  const Schema = mongoose.Schema;
  
  const gallerySchema = Schema({
    name: { type: String, required: true},
    desc: { type: String, required: true},
    created: { type: Date, required: true, default: Date.now },
    userID: { type: mongoose.Schema.Types.ObjectId, required: true}
  });
  
  module.exports = mongoose.model('gallery', gallerySchema);
  