19. Tourist and TouristTransaction Modules with Jinja2
Designing Tourist and TouristTransaction Collections
// tourists collection
{
"_id": "tourist_id",
"name": "Alice",
"country": "Germany"
}
// tourist_transactions collection
{
"_id": "txn_id",
"tourist_id": "tourist_id",
"amount": 1200,
"location": "France"
}Displaying Relational Data Using Jinja Templates
HTML Template for Relational Rendering
End-to-End Flow: Database → FastAPI → HTML
Last updated