REFACTOR - Database logic

This commit is contained in:
Urtzi Alfaro
2025-08-08 09:08:41 +02:00
parent 0154365bfc
commit 488bb3ef93
113 changed files with 22842 additions and 6503 deletions

View File

@@ -646,7 +646,7 @@ echo "Validation request (first 200 chars):"
head -c 200 "$VALIDATION_DATA_FILE"
echo "..."
VALIDATION_RESPONSE=$(curl -s -w "\nHTTP_CODE:%{http_code}" -X POST "$API_BASE/api/v1/tenants/$TENANT_ID/sales/import/validate" \
VALIDATION_RESPONSE=$(curl -s -w "\nHTTP_CODE:%{http_code}" -X POST "$API_BASE/api/v1/tenants/$TENANT_ID/sales/import/validate-json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-d @"$VALIDATION_DATA_FILE")
@@ -777,7 +777,7 @@ log_step "5.1. Testing basic dashboard functionality"
# forecast request with proper schema
FORECAST_REQUEST="{
\"product_name\": \"pan\",
\"forecast_date\": \"2025-08-02\",
\"forecast_date\": \"2025-08-08\",
\"forecast_days\": 1,
\"location\": \"madrid_centro\",
\"confidence_level\": 0.85