{
    "title": "presales_messages",
    "type": "object",
    "description": "Pre-sales chat/contact inquiries submitted from marketing landing pages like Bizmail360.",
    "properties": {
        "id": {
            "type": "integer",
            "description": "Primary key, auto-increment"
        },
        "name": {
            "type": "string",
            "description": "Visitor's full name",
            "maxLength": 120
        },
        "email": {
            "type": "string",
            "description": "Visitor's email address for follow-up",
            "maxLength": 255
        },
        "phone": {
            "type": "string",
            "description": "Optional phone / WhatsApp number",
            "maxLength": 40
        },
        "company": {
            "type": "string",
            "description": "Optional company / organisation name",
            "maxLength": 200
        },
        "source_page": {
            "type": "string",
            "description": "Page slug where the message was submitted, e.g. 'bizmail360'",
            "maxLength": 80
        },
        "topic": {
            "type": "string",
            "description": "Topic / category of the inquiry (pricing, demo, migration, other)",
            "maxLength": 40
        },
        "message": {
            "type": "string",
            "description": "Message body from the visitor"
        },
        "status": {
            "type": "string",
            "description": "Follow-up status: new, in_progress, closed",
            "maxLength": 20
        },
        "user_agent": {
            "type": "string",
            "description": "User agent string for analytics",
            "maxLength": 500
        },
        "referrer": {
            "type": "string",
            "description": "HTTP referrer URL",
            "maxLength": 500
        }
    },
    "required": [
        "id",
        "name",
        "email",
        "message",
        "source_page"
    ]
}