import Mongoose, {Schema} from 'mongoose'
import Timestamps from 'mongoose-timestamp'

let Project = new Schema({
  name: { type: String, required: true, index: true },
  maintainers: { type: Array, default: [] },
  description: { type: String },
  hasLinter: { type: Boolean, default: false },
  hasReadme: { type: Boolean, default: false }
})

Project.plugin(Timestamps)

export default Mongoose.model('Project', Project)

@@ -334,16 +334,79 @@
  false %7D
+,%0A  versions: %5B%7B type: Schema.Types.ObjectId, ref: 'Version' %7D%5D
 %0A%7D)%0A%0APro

Add reference to versions