{ "customers": [ { "id": "60000000-0000-0000-0000-000000000001", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_code": "CUST-001", "name": "Restaurante El Buen Yantar", "customer_type": "WHOLESALE", "contact_person": "Luis Gómez", "email": "compras@buenyantar.es", "phone": "+34 912 345 678", "address": "Calle Mayor, 45", "city": "Madrid", "postal_code": "28013", "country": "España", "status": "ACTIVE", "total_orders": 45, "total_spent": 3250.75, "created_at": "BASE_TS", "notes": "Regular wholesale customer - weekly orders" }, { "id": "60000000-0000-0000-0000-000000000002", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_code": "CUST-002", "name": "Cafetería La Esquina", "customer_type": "RETAIL", "contact_person": "Marta Ruiz", "email": "cafeteria@laesquina.com", "phone": "+34 913 456 789", "address": "Plaza del Sol, 12", "city": "Madrid", "postal_code": "28012", "country": "España", "status": "ACTIVE", "total_orders": 12, "total_spent": 850.2, "created_at": "BASE_TS", "notes": "Small retail customer - biweekly orders" }, { "id": "60000000-0000-0000-0000-000000000003", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_code": "CUST-003", "name": "Hotel Madrid Plaza", "customer_type": "WHOLESALE", "contact_person": "Carlos Fernández", "email": "compras@hotelmadridplaza.com", "phone": "+34 914 567 890", "address": "Calle Gran Vía, 25", "city": "Madrid", "postal_code": "28013", "country": "España", "status": "ACTIVE", "total_orders": 28, "total_spent": 2150.5, "created_at": "BASE_TS", "notes": "Hotel chain - large volume orders" }, { "id": "60000000-0000-0000-0000-000000000004", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_code": "CUST-004", "name": "Panadería Los Nogales", "customer_type": "RETAIL", "contact_person": "Ana López", "email": "panaderia@losnogales.es", "phone": "+34 915 678 901", "address": "Calle Alcala, 120", "city": "Madrid", "postal_code": "28009", "country": "España", "status": "ACTIVE", "total_orders": 8, "total_spent": 620.4, "created_at": "BASE_TS", "notes": "Local bakery - frequent small orders" }, { "id": "60000000-0000-0000-0000-000000000005", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_code": "CUST-005", "name": "Supermercado EcoMarket", "customer_type": "WHOLESALE", "contact_person": "Pedro Martínez", "email": "compras@ecomarket.es", "phone": "+34 916 789 012", "address": "Avenida América, 35", "city": "Madrid", "postal_code": "28002", "country": "España", "status": "ACTIVE", "total_orders": 15, "total_spent": 1250.75, "created_at": "BASE_TS", "notes": "Organic supermarket chain - premium products" } ], "customer_orders": [ { "id": "60000000-0000-0000-0000-000000000001", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000001", "order_number": "ORD-20250115-001", "order_date": "BASE_TS - 1d 5h", "delivery_date": "BASE_TS + 3h", "status": "DELIVERED", "total_amount": 125.5, "created_at": "BASE_TS", "notes": "Regular weekly order" }, { "id": "60000000-0000-0000-0000-000000000002", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000002", "order_number": "ORD-20250115-002", "order_date": "BASE_TS - 1d 8h", "delivery_date": "BASE_TS + 4h", "status": "DELIVERED", "total_amount": 45.2, "created_at": "BASE_TS", "notes": "Small retail order" }, { "id": "60000000-0000-0000-0000-000000000099", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000001", "order_number": "ORD-URGENT-001", "order_date": "BASE_TS + 1h", "delivery_date": "BASE_TS + 2h 30m", "status": "PENDING", "total_amount": 185.75, "is_urgent": true, "created_at": "BASE_TS", "notes": "Urgent order - special event at restaurant", "reasoning_data": { "type": "urgent_delivery", "parameters": { "event_type": "special_event", "required_time": "2025-01-15T08:30:00Z", "priority": "high" } } }, { "id": "60000000-0000-0000-0000-000000000100", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000005", "order_number": "ORD-20250115-003", "order_date": "BASE_TS + 2h", "delivery_date": "BASE_TS + 4h", "status": "PENDING", "total_amount": 215.5, "created_at": "BASE_TS", "notes": "Regular wholesale order - organic products", "reasoning_data": { "type": "standard_delivery", "parameters": { "delivery_window": "morning", "priority": "medium" } } } ], "order_items": [ { "id": "60000000-0000-0000-0000-000000000101", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "order_id": "60000000-0000-0000-0000-000000000001", "product_id": "20000000-0000-0000-0000-000000000001", "quantity": 50.0, "unit_price": 2.5, "total_price": 125.0, "created_at": "BASE_TS" }, { "id": "60000000-0000-0000-0000-000000000102", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "order_id": "60000000-0000-0000-0000-000000000002", "product_id": "20000000-0000-0000-0000-000000000002", "quantity": 12.0, "unit_price": 3.75, "total_price": 45.0, "created_at": "BASE_TS" }, { "id": "60000000-0000-0000-0000-000000000199", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "order_id": "60000000-0000-0000-0000-000000000099", "product_id": "20000000-0000-0000-0000-000000000001", "quantity": 75.0, "unit_price": 2.45, "total_price": 183.75, "created_at": "BASE_TS", "notes": "Urgent delivery - priority processing" }, { "id": "60000000-0000-0000-0000-000000000103", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "order_id": "60000000-0000-0000-0000-000000000100", "product_id": "20000000-0000-0000-0000-000000000003", "quantity": 20.0, "unit_price": 3.25, "total_price": 65.0, "created_at": "BASE_TS" } ], "completed_orders": [ { "id": "60000000-0000-0000-0000-000000000201", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000001", "order_number": "ORD-20250114-001", "order_date": "BASE_TS - 2d 4h", "delivery_date": "BASE_TS - 2d 6h", "status": "DELIVERED", "total_amount": 150.25, "created_at": "BASE_TS - 2d 4h", "notes": "Regular weekly order - delivered on time" }, { "id": "60000000-0000-0000-0000-000000000202", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000003", "order_number": "ORD-20250114-002", "order_date": "BASE_TS - 2d 8h", "delivery_date": "BASE_TS - 1d 2h", "status": "DELIVERED", "total_amount": 225.75, "created_at": "BASE_TS - 2d 8h", "notes": "Hotel order - large quantity for breakfast service" }, { "id": "60000000-0000-0000-0000-000000000203", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000002", "order_number": "ORD-20250113-001", "order_date": "BASE_TS - 3d 3h", "delivery_date": "BASE_TS - 3d 5h", "status": "DELIVERED", "total_amount": 55.5, "created_at": "BASE_TS - 3d 3h", "notes": "Small retail order - delivered on time" }, { "id": "60000000-0000-0000-0000-000000000204", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000004", "order_number": "ORD-20250113-002", "order_date": "BASE_TS - 3d 5h", "delivery_date": "BASE_TS - 3d 8h", "status": "DELIVERED", "total_amount": 42.75, "created_at": "BASE_TS - 3d 5h", "notes": "Local bakery order - small quantity" }, { "id": "60000000-0000-0000-0000-000000000205", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000005", "order_number": "ORD-20250112-001", "order_date": "BASE_TS - 4d 4h", "delivery_date": "BASE_TS - 4d 10h", "status": "DELIVERED", "total_amount": 185.25, "created_at": "BASE_TS - 4d 4h", "notes": "Organic supermarket order - premium products" }, { "id": "60000000-0000-0000-0000-000000000206", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000001", "order_number": "ORD-20250111-001", "order_date": "BASE_TS - 5d 2h", "delivery_date": "BASE_TS - 5d 4h", "status": "DELIVERED", "total_amount": 135.5, "created_at": "BASE_TS - 5d 2h", "notes": "Regular wholesale order - delivered on time" }, { "id": "60000000-0000-0000-0000-000000000207", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000003", "order_number": "ORD-20250110-001", "order_date": "BASE_TS - 6d 9h", "delivery_date": "BASE_TS - 5d 1h", "status": "DELIVERED", "total_amount": 195.75, "created_at": "BASE_TS - 6d 9h", "notes": "Hotel order - evening delivery for next morning" }, { "id": "60000000-0000-0000-0000-000000000208", "tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6", "customer_id": "60000000-0000-0000-0000-000000000002", "order_number": "ORD-20250109-001", "order_date": "BASE_TS - 7d 4h", "delivery_date": "BASE_TS - 7d 6h", "status": "DELIVERED", "total_amount": 48.25, "created_at": "BASE_TS - 7d 4h", "notes": "Small retail order - delivered on time" } ] }