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

Verification - Appointment data:
- ID: 328
- Booking ID: 01KPQQZ318BJJGTAMZMYYFP5ZM
- Service ID: TEST_SERVICE
- Customer: Test Customer (test1776765865@example.com)
- Start: 2026-04-22 16:00:00
- End: 2026-04-22 17:00:00
- Status: PENDING
- Created: 2026-04-21 12:04:25

✅ Database integration test completed successfully!
