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,9 +1,8 @@
|
|||
from typing import Optional
|
||||
from pydantic import BaseModel, EmailStr
|
||||
from sqlmodel import Field, SQLModel
|
||||
|
||||
from src.db.roles import RoleRead
|
||||
from src.db.organizations import OrganizationRead
|
||||
|
||||
|
||||
|
||||
class UserBase(SQLModel):
|
||||
|
|
@ -45,6 +44,7 @@ class PublicUser(UserRead):
|
|||
|
||||
|
||||
class UserRoleWithOrg(BaseModel):
|
||||
from src.db.organizations import OrganizationRead
|
||||
role: RoleRead
|
||||
org: OrganizationRead
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue