main functions commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-19 19:50:00 +09:00
parent ce72785184
commit 3050e084fa
39 changed files with 7149 additions and 186 deletions

View File

@@ -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")

View File

@@ -23,8 +23,8 @@ class User(BaseModel):
avatar_url = Column(String)
bio = Column(Text)
# Отношения
emergency_contacts = relationship("EmergencyContact", back_populates="user", cascade="all, delete-orphan")
# Отношения (используем lazy import для избежания циклических зависимостей)
# emergency_contacts = relationship("EmergencyContact", back_populates="user", cascade="all, delete-orphan")
# Emergency contacts
emergency_contact_1_name = Column(String(100))