{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "#DataCollection",
    "description": "An individual collection of data. The collection may exist in various formats, such as a table (e.g. a MySQL table). The exact data type is described in the _type property of the Entity.",
    "type": "object",
    "allOf": [
        {
            "$ref": "#Entity"
        },
        {
            "properties": {
                "PII": {
                    "description": "Indicates if this data table contains Personally Identifiable Information",
                    "type": "boolean"
                },
                "PHI": {
                    "description": "Indicates if this data table contains Protected Health Information",
                    "type": "boolean"
                },
                "PCI": {
                    "description": "Indicates if this data table contains Payment Card Information",
                    "type": "boolean"
                },
                "encryptionRequired": {
                    "description": "If the objects in the table need to be encrypted",
                    "type": "boolean"
                },
                "encrypted": {
                    "description": "If the data in the table is encrypted",
                    "type": "boolean"
                },
                "public": {
                    "description": "Indicates if the data table is open to public access",
                    "type": "boolean"
                }
            },
            "required": ["classification"]
        }
    ]
}
