Testing database connection...
✅ Database connection successful
Test data prepared:
{
    "service": {
        "id": "TEST_SERVICE",
        "name": "Test Consultation",
        "duration": 60
    },
    "start_iso": "2026-08-25T14:00:00.000Z",
    "end_iso": "2026-08-25T15:00:00.000Z",
    "client": {
        "firstName": "Test",
        "lastName": "Customer",
        "email": "test1787534507@example.com",
        "phone": "+32470123456"
    },
    "mode": "Visio",
    "timezone": "Europe\/Brussels",
    "meta": {
        "buffer_min": 10,
        "slot_step_min": 30,
        "correlation_id": "ead71639596460e4"
    }
}
Generated booking ID: 01M0RNQYZR5RNSNSRBEN02XDA5
Customer ID: 856
✅ Appointment created successfully!
Booking ID: 01M0RNQYZR5RNSNSRBEN02XDA5
Cancellation token (first 50 chars): eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJib29raW5nX...

Verification - Appointment data:
- ID: 556
- Booking ID: 01M0RNQYZR5RNSNSRBEN02XDA5
- Service ID: TEST_SERVICE
- Customer: Test Customer (test1787534507@example.com)
- Start: 2026-08-25 16:00:00
- End: 2026-08-25 17:00:00
- Status: PENDING
- Created: 2026-08-24 03:21:15

✅ Database integration test completed successfully!
