Skip to content

linkusergroup

LinkUserGroup

Bases: SQLModel

Crossing table between User and UserGroup

Source code in fractal_server/app/models/linkusergroup.py
 5
 6
 7
 8
 9
10
11
class LinkUserGroup(SQLModel, table=True):
    """
    Crossing table between User and UserGroup
    """

    group_id: int = Field(foreign_key="usergroup.id", primary_key=True)
    user_id: int = Field(foreign_key="user_oauth.id", primary_key=True)