{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "datastore entity properties",
    "description": "datastore entity properties",
    "type": "object",
    "properties": {
        "email": {
            "type": "string",
            "minLength": 1
        },
        "hashedPassword": {
            "type": "string",
            "minLength": 1
        },
        "dockerImageName": {
            "type": "string",
            "minLength": 1
        },
        "credentials": {
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "object",
                "properties": {
                    "key": {
                        "type": "string",
                        "minLength": 1
                    },
                    "hashedSecret": {
                        "type": "string",
                        "minLength": 1
                    },
                    "createdOn": {
                        "type": "string",
                        "minLength": 1
                    },
                    "expiresOn": {
                        "type": "string",
                        "minLength": 1
                    },
                    "revokedOn": {
                        "type": "string",
                        "minLength": 1
                    }
                },
                "required": [
                    "key",
                    "hashedSecret",
                    "createdOn",
                    "expiresOn"
                ],
                "additionalProperties": false
            }
        },
        "lastUpdated": {
            "type": "string",
            "minLength": 1
        }
    },
    "required": [
        "email",
        "hashedPassword",
        "dockerImageName",
        "credentials",
        "lastUpdated"
    ],
    "additionalProperties": true
}