[Backend] How to Correctly Use lazyload, selectinload and joinedload in SQLAlchemy

In SQLAlchemy, relationships are a powerful pattern to map parent and child tables. They allow easy access to related attributes from both…