{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "#Database",
    "description": "A database cluster/instance.",
    "type": "object",
    "allOf": [
        { "$ref": "#Entity" },
        {
            "properties": {
                "location": {
                    "description": "URI to access the database.",
                    "type": "string"
                },
                "encryptionRequired": {
                    "description": "If the data needs to be encrypted",
                    "type": "boolean"
                },
                "encrypted": {
                    "description": "If the repository is encrypted",
                    "type": ["boolean", "null"]
                }
            },
            "required": []
        }
    ]
}
