This commit is contained in:
@@ -17,5 +17,5 @@ class EmergencyContact(BaseModel):
|
||||
relation_type = Column(String(50)) # Переименовано из relationship в relation_type
|
||||
notes = Column(Text)
|
||||
|
||||
# Отношение к пользователю
|
||||
user = orm_relationship("User", back_populates="emergency_contacts")
|
||||
# Отношение к пользователю (без back_populates для избежания циклических зависимостей)
|
||||
user = orm_relationship("User")
|
||||
Reference in New Issue
Block a user