Initial project setup: NF Hotel Data Analysis API

- Add project structure with domain-driven design organization
- Implement FastAPI endpoints for hotel booking reports
- Add data cleaning, statistics, and LLM report generation services
- Include configuration management and security utilities
- Add repository layer for bookings and metadata access
- Setup testing framework with conftest.py
- Include example files and documentation
This commit is contained in:
2026-09-21 13:17:49 +08:00
commit 225d28feb7
39 changed files with 41693 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
{
"records": [
{
"booking_id": 1,
"hotel": "NF Hotel",
"is_canceled": 0,
"lead_time": 342,
"arrival_date_week_number": 27,
"booking_date": "2017-07-24",
"arrival_date": "2018-07-01",
"arrival_date_day_of_month": 1,
"stays_in_weekend_nights": 0,
"stays_in_week_nights": 0,
"adults": 2,
"children": 0,
"babies": 0,
"meal": "BB",
"country": "Portugal",
"market_segment": "Direct",
"is_repeated_guest": 0,
"previous_cancellations": 0,
"assigned_room_type": "A",
"booking_changes": 3,
"deposit_type": "No Deposit",
"agent": 0,
"customer_type": "No Contract (Single)",
"required_car_parking_spaces": 0,
"total_of_special_requests": 0
},
{
"booking_id": 2,
"hotel": "NF Hotel",
"is_canceled": 0,
"lead_time": 737,
"arrival_date_week_number": 27,
"booking_date": "2016-06-24",
"arrival_date": "2018-07-01",
"arrival_date_day_of_month": 1,
"stays_in_weekend_nights": 0,
"stays_in_week_nights": 0,
"adults": 2,
"children": 0,
"babies": 0,
"meal": "BB",
"country": "Portugal",
"market_segment": "Direct",
"is_repeated_guest": 0,
"previous_cancellations": 0,
"assigned_room_type": "B",
"booking_changes": 4,
"deposit_type": "No Deposit",
"agent": 0,
"customer_type": "No Contract (Single)",
"required_car_parking_spaces": 0,
"total_of_special_requests": 0
}
]
}