{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "UserInsight",
    "type": "object",
    "additionalProperties": false,
    "description": "v1 of user insight data object",
    "properties": {
        "user_id": {
            "type": "string",
            "description": "Required.. unique ID that defines a user in system"
        },
        "run_dt": {
            "type": "string",
            "description": "Date the algorithm was run for the user."
        },
        "key_destinations": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/data/user/insight/v1/KeyDestination.json",
                "description": "Each element of the Array is instance of KeyDestination Object"
            },
            "description": "Key Destinations identified for this user"
        },
        "predictive_destinations": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/data/user/insight/v1/PredictiveDestination.json",
                "description": "Each element of the Array is instance of PredictiveDestination Object"
            },
            "description": "Predictive Destinations identified for this user"
        },
        "personalized_route": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/data/user/insight/v1/PersonalizedRoute.json",
                "description": "Each element of the Array is instance of PersonalizedRoute Object"
            },
            "description": "Personalized Routes identified for this user"
        }
    },
    "required": [
        "user_id",
        "run_dt"
    ]
}