{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "description": "Uploaded file metadata entity",
    "additionalProperties": false,
    "properties": {
        "id": {
            "description": "UUID",
            "type": "string"
        },
        "sourcePath": {
            "description": "The path to the file location",
            "type": "string",
            "readonly": true
        },
        "name": {
            "description": "Name of the file with extension",
            "type": "string"
        },
        "jobExecutionId": {
            "description": "Link to JobExecution entity",
            "type": "string"
        },
        "uploadDefinitionId": {
            "description": "Link to UploadDefinition entity",
            "type": "string"
        },
        "loaded": {
            "description": "Flag that indicates whether the file is loaded",
            "type": "boolean"
        },
        "createDate": {
            "description": "Date and time when the file definition was created",
            "type": "string",
            "format": "date-time"
        },
        "uploadedDate": {
            "description": "Date and time when the file was uploaded",
            "type": "string",
            "format": "date-time"
        }
    },
    "required": [
        "name"
    ]
}