{ "customers": [ { "id": "60000000-0000-0000-0000-000000002001", "tenant_id": "80000000-0000-4000-a000-000000000001", "customer_code": "ENT-CUST-001", "name": "Grupo Hotelero Mediterráneo", "customer_type": "ENTERPRISE", "contact_person": "Luis Gómez", "email": "compras@grupohotelmed.com", "phone": "+34 912 345 678", "address": "Calle Gran Vía, 45", "city": "Madrid", "postal_code": "28013", "country": "España", "status": "ACTIVE", "total_orders": 125, "total_spent": 18500.75, "created_at": "BASE_TS", "notes": "Cadena hotelera con 15 ubicaciones en España", "contract_type": "national_supply_agreement", "annual_volume_commitment": 25000.0, "enterprise_customer": true, "delivery_locations": [ "Madrid Centro", "Barcelona Gràcia", "Valencia Ruzafa", "Sevilla Santa Cruz", "Málaga Centro" ] } ], "customer_orders": [ { "id": "60000000-0000-0000-0000-000000002001", "tenant_id": "80000000-0000-4000-a000-000000000001", "customer_id": "60000000-0000-0000-0000-000000002001", "order_number": "ENT-ORD-20250115-001", "order_date": "BASE_TS - 1d 5h", "delivery_date": "BASE_TS + 3h", "status": "DELIVERED", "total_amount": 650.5, "created_at": "BASE_TS", "notes": "Pedido semanal para 5 hoteles", "enterprise_order": true, "contract_reference": "ENT-HOTEL-2024-001", "delivery_locations": [ { "location": "Hotel Mediterráneo Madrid", "quantity": 50.0, "delivery_time": "2025-01-15T09:00:00Z" }, { "location": "Hotel Mediterráneo Barcelona", "quantity": 30.0, "delivery_time": "2025-01-15T10:00:00Z" }, { "location": "Hotel Mediterráneo Valencia", "quantity": 20.0, "delivery_time": "2025-01-15T11:00:00Z" } ] } ], "order_items": [ { "id": "60000000-0000-0000-0000-000000002101", "tenant_id": "80000000-0000-4000-a000-000000000001", "order_id": "60000000-0000-0000-0000-000000002001", "product_id": "20000000-0000-0000-0000-000000000001", "quantity": 100.0, "unit_price": 2.5, "total_price": 250.0, "created_at": "BASE_TS", "enterprise_item": true }, { "id": "60000000-0000-0000-0000-000000002102", "tenant_id": "80000000-0000-4000-a000-000000000001", "order_id": "60000000-0000-0000-0000-000000002001", "product_id": "20000000-0000-0000-0000-000000000002", "quantity": 25.0, "unit_price": 3.75, "total_price": 93.75, "created_at": "BASE_TS", "enterprise_item": true }, { "id": "60000000-0000-0000-0000-000000002103", "tenant_id": "80000000-0000-4000-a000-000000000001", "order_id": "60000000-0000-0000-0000-000000002001", "product_id": "20000000-0000-0000-0000-000000000003", "quantity": 20.0, "unit_price": 2.25, "total_price": 45.0, "created_at": "BASE_TS", "enterprise_item": true }, { "id": "60000000-0000-0000-0000-000000002104", "tenant_id": "80000000-0000-4000-a000-000000000001", "order_id": "60000000-0000-0000-0000-000000002001", "product_id": "20000000-0000-0000-0000-000000000004", "quantity": 15.0, "unit_price": 1.75, "total_price": 26.25, "created_at": "BASE_TS", "enterprise_item": true } ] }