fix: drop superfluous column in usergroups
Group org is assigned in the Group table. Also assigning it in the UserGroups table complicated relationship creation and it was never used.
This commit is contained in:
parent
6f174deefc
commit
65a9514be6
2 changed files with 34 additions and 1 deletions
|
|
@ -78,6 +78,5 @@ class GroupPermissions(Base):
|
|||
|
||||
class UserGroups(Base):
|
||||
__tablename__ = "user_groups"
|
||||
org_id = Column(Integer, ForeignKey("organisation.id", ondelete="CASCADE"), primary_key=True)
|
||||
user_id = Column(Integer, ForeignKey("user.id", ondelete="CASCADE"), primary_key=True)
|
||||
group_id = Column(Integer, ForeignKey("group.id", ondelete="CASCADE"), primary_key=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue