parent
8d7d6f95ba
commit
7af908a2af
@ -29,7 +29,7 @@ class User(SQLModel, table=True):
|
||||
username: str = Field(index=True)
|
||||
password: str
|
||||
role: int
|
||||
tenant_id: int|None = Field(default=None, foreign_key="Tenant.id")
|
||||
tenant_id: int | None = Field(default=None, foreign_key="Tenant.id")
|
||||
tenant: Tenant = Relationship(back_populates="users")
|
||||
projects: List["Project"] = Relationship(back_populates="users", link_model=ProjectUserLink)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user