// Collection - get the collection for this data model. func (model *User) Collection() *mgo.Collection { db := common.GetDatabase() return db.C("users") }
// Collection - get the collection for this data model. func (model *BuildModel) Collection() *mgo.Collection { db := common.GetDatabase() return db.C("elasticsearchBuilds") }