mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: users management
This commit is contained in:
parent
a552300e15
commit
689625b0d5
22 changed files with 621 additions and 36 deletions
|
|
@ -1,5 +1,8 @@
|
|||
from typing import Optional
|
||||
from pydantic import BaseModel
|
||||
from sqlmodel import Field, SQLModel
|
||||
from src.db.roles import RoleRead
|
||||
|
||||
from src.db.organization_config import OrganizationConfig
|
||||
|
||||
|
||||
|
|
@ -32,3 +35,9 @@ class OrganizationRead(OrganizationBase):
|
|||
config: Optional[OrganizationConfig | dict]
|
||||
creation_date: str
|
||||
update_date: str
|
||||
|
||||
|
||||
class OrganizationUser(BaseModel):
|
||||
from src.db.users import UserRead
|
||||
user: UserRead
|
||||
role: RoleRead
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue