{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "#Site",
    "description": "The physical location of an organization. A Person (i.e. employee) would typically has a relationship to a Site (i.e. located_at or work_at). Also used as the abstract reference to AWS Regions.",
    "type": "object",
    "allOf": [
        {
            "$ref": "#Entity"
        },
        {
            "properties": {
                "category": {
                    "description": "Type of site",
                    "type": "array",
                    "items": {
                        "type": "string",
                        "examples": [
                            "headquarters",
                            "branch",
                            "campus",
                            "office",
                            "aws-region",
                            "data-center",
                            "lab",
                            "other"
                        ]
                    }
                },
                "location": {
                    "description": "The address/location of the site. Or an AWS Region (e.g. us-east-2).",
                    "type": "string"
                },
                "hours": {
                    "description": "Hours of operation. e.g. M-F 9am-6pm",
                    "type": "string"
                },
                "secured": {
                    "description": "Indicates the site is secured with physical controls such as key card access and surveillance cameras.",
                    "type": "boolean"
                },
                "restricted": {
                    "description": "Indicates that access to the site is restricted (a level above secured access).",
                    "type": "boolean"
                }
            },
            "required": []
        }
    ]
}
