MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / relationships

Method relationships

src/app/user/dto/user.py:78–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76
77 @property
78 def relationships(self) -> dict[str, RelationshipConfig]:
79 return {
80 "UserNotification": RelationshipConfig(
81 name="UserNotification",
82 service_name="user_notification_service",
83 service_method="new_by_user_id",
84 foreign_key="user_id",
85 relationship_type=RelationshipType.HAS_MANY,
86 )
87 }
88
89 # relationship on by own
90 # RelationshipConfig(

Callers

nothing calls this directly

Calls 1

RelationshipConfigClass · 0.90

Tested by

no test coverage detected