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": "test1776778281@example.com",
        "phone": "+32470123456"
    },
    "mode": "Visio",
    "timezone": "Europe\/Brussels",
    "meta": {
        "buffer_min": 10,
        "slot_step_min": 30,
        "correlation_id": "1574bd6d3d7dce51"
    }
}
Generated booking ID: 01KPR3T018QSZZ87NF9W1YYS88
Customer ID: 630
✅ Appointment created successfully!
Booking ID: 01KPR3T018QSZZ87NF9W1YYS88
Cancellation token (first 50 chars): eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJib29raW5nX...

Verification - Appointment data:
- ID: 330
- Booking ID: 01KPR3T018QSZZ87NF9W1YYS88
- Service ID: TEST_SERVICE
- Customer: Test Customer (test1776778281@example.com)
- Start: 2026-04-22 16:00:00
- End: 2026-04-22 17:00:00
- Status: PENDING
- Created: 2026-04-21 15:31:21

✅ Database integration test completed successfully!
