{
    "fields": {
        "number": {
            "type": "autoincrement",
            "dbType": "bigint"
        },
        "event": {
            "type": "varchar",
            "maxLength": 100,
            "required": true
        },
        "webhook": {
            "type": "link"
        },
        "target": {
            "type": "linkParent"
        },
        "data": {
            "type": "jsonObject"
        },
        "createdAt": {
            "type": "datetime",
            "hasSeconds": true
        },
        "status": {
            "type": "enum",
            "options": ["Pending", "Success", "Failed"],
            "default": "Pending",
            "maxLength": 7,
            "style": {
                "Success": "success",
                "Failed": "danger"
            }
        },
        "processedAt": {
            "type": "datetime",
            "hasSeconds": true
        },
        "attempts": {
            "type": "int",
            "default": 0
        },
        "processAt": {
            "type": "datetime"
        }
    },
    "links": {
        "target": {
            "type": "belongsToParent"
        },
        "webhook": {
            "type": "belongsTo",
            "entity": "Webhook",
            "foreignName": "id"
        }
    },
    "collection": {
        "orderBy": "number",
        "order": "desc"
    }
}
