{
    "title": "notifications",
    "type": "object",
    "properties": {
        "id": {
            "type": "integer",
            "description": "Primary key, auto-increment"
        },
        "user_id": {
            "type": "string",
            "description": "Owner user id"
        },
        "type": {
            "type": "string",
            "description": "Notification type: ticket_reply | ticket_status_change | ticket_new"
        },
        "ticket_id": {
            "type": "string",
            "description": "Related WHMCS ticket id"
        },
        "title": {
            "type": "string",
            "description": "Short title"
        },
        "body": {
            "type": "string",
            "description": "Body text"
        },
        "data": {
            "type": "string",
            "description": "Extra JSON-encoded payload"
        },
        "read": {
            "type": "boolean",
            "description": "Whether the notification has been read"
        }
    },
    "required": [
        "id",
        "user_id",
        "type",
        "title"
    ]
}