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

Verification - Appointment data:
- ID: 422
- Booking ID: 01KVYHZ1CGV0MD0TX3Q2HVAE3N
- Service ID: TEST_SERVICE
- Customer: Test Customer (test1782363162@example.com)
- Start: 2026-06-26 16:00:00
- End: 2026-06-26 17:00:00
- Status: PENDING
- Created: 2026-06-25 06:52:42

✅ Database integration test completed successfully!
