{
	"$schema" : "http://json-schema.org/draft-04/schema#",
	"title" : "EntityUserInsight",
	"type" : "object",
	"additionalProperties" : false,
	"description" : "EntityUserInsight object",
	"properties" : {
		"userid" : {
			"type" : "string",
			"description" : "unique ID for which the insight is created"
		},

		"home_entity_id" : {
			"type" : "string",
			"description" : "entity id of home"
		},

		"work_entity_id" : {
			"type" : "string",
			"description" : "entity id of work"
		},

		"category_usage" : {
			"type" : "array",
            "items" : {
			"$ref" : "/resources/schema/data/entity/user/insight/v1/CategoryUsage.json"},
			"description" : "category usage object"
		},

		"brand_usage" : {
			"type" : "array",
            "items" : {
			"$ref" : "/resources/schema/data/entity/user/insight/v1/BrandUsage.json"},
			"description" : "brand usage object"
		},

		"entity_usage" : {
			"type" : "array",
            "items" : {
			"$ref" : "/resources/schema/data/entity/user/insight/v1/EntityUsage.json"},
			"description" : "entity usage object"
		},
		
		"query_usage" : {
			"type" : "array",
            "items" : {
			"$ref" : "/resources/schema/data/entity/user/insight/v1/QueryUsage.json"},
			"description" : "query usage object"
		}
		
	},

	"required" : 
	[
		"userid"
	]
}