From b147d50d8e80c29ff0dd1ac9f1cf3b99f901dee2 Mon Sep 17 00:00:00 2001 From: andrei Date: Tue, 10 Jun 2025 18:51:32 +0500 Subject: [PATCH] =?UTF-8?q?feat(profiles):=20=D0=94=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20cascade=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20user=20relationship?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- API/app/domain/models/profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/app/domain/models/profiles.py b/API/app/domain/models/profiles.py index cc76e79..4a33b20 100644 --- a/API/app/domain/models/profiles.py +++ b/API/app/domain/models/profiles.py @@ -20,6 +20,6 @@ class Profile(AdvancedBaseModel): role = relationship('Role', back_populates='profiles') team = relationship('Team', back_populates='profiles') - user = relationship('User', back_populates='profile') + user = relationship('User', back_populates='profile', cascade='all') profile_photos = relationship('ProfilePhoto', back_populates='profile') projects = relationship('ProjectMember', back_populates='profile')