var mongoose = require('mongoose');

var Schema = mongoose.Schema;

var dogSchema = new Schema({
  name: String,
  breed: String,
  color: String,
  age: { type: Number, max: 50 },
  size: { type: String, enum: ["small", "medium", "large"] },
  location: { type: String, enum: neighborhoods },
  image: String,
  reward: String,
  phoneNumber: String,
  description: String,
  lost: Boolean,
  createdOn: { type: Date, default: Date.now },
  isActive: { type: Boolean, default: true }
});

var neighborhoods = ["Bernal Heights", "The Castro", "Chinatown", "Cole Valley", "Deco Ghetto", "Fisherman's Wharf", "Golden Gate Park", "The Haight", "Hayes Valley", "Inner Richmond", "Inner Sunset", "The Marina", "The Mission", "Mission to Potrero", "Dolores and Valencia Corridor", "24th Street", "Nob Hill", "Noe Valley", "North Beach", "Outer Richmond", "Outer Sunset", "Pacific Heights", "Potrero Hill", "Russian Hill", "SoMa", "Tenderloin", "Union Square", "Western Addition"];

var Dog = mongoose.model("Dog", dogSchema);

module.exports = Dog;

@@ -374,21 +374,66 @@
 ,%0A  
-lost: Boolean
+status: %7B type: String, enum: %5B%22lost%22, %22found%22, %22sited%22%5D %7D
 ,%0A  

change dog 'lost' to enumerated dog 'status'.