application := models.Application{ ApplicationName: "hallo", Models: []models.BEModel{ models.BEModel{ Name: "test", Fields: []models.Field{ models.Field{ Name: "manufacturer", Type: "string", Mandatory: true, Collection: false, }, models.Field{ Name: "model", Type: "string", Mandatory: true, Collection: false, }, models.Field{ Name: "tags", Type: "string", Mandatory: false, Collection: true, }, }, Indexes: []models.Index{ models.Index{ Name: "fulltest", Fields: []string{"manufacturer", "model", "tags"}, }, models.Index{ Name: "manufacturer", Fields: []string{"manufacturer"}, }, models.Index{ Name: "tags", Fields: []string{"tags"}, }, }, }, }, }