Skip to content

linkuserproject

LinkUserProject

Bases: SQLModel

Crossing table between User and Project

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

    project_id: int = Field(foreign_key="project.id", primary_key=True)
    user_id: int = Field(foreign_key="user_oauth.id", primary_key=True)

LinkUserProjectV2

Bases: SQLModel

Crossing table between User and ProjectV2

Source code in fractal_server/app/models/linkuserproject.py
14
15
16
17
18
19
20
class LinkUserProjectV2(SQLModel, table=True):
    """
    Crossing table between User and ProjectV2
    """

    project_id: int = Field(foreign_key="projectv2.id", primary_key=True)
    user_id: int = Field(foreign_key="user_oauth.id", primary_key=True)