Reafctor app

This commit is contained in:
Oliver Traber 2024-04-13 22:43:03 +02:00
parent b8216f6ade
commit 7740be8bb5
Signed by: Bluemedia
GPG key ID: C0674B105057136C
36 changed files with 389 additions and 208 deletions

18
app/schemas/user.py Normal file
View file

@ -0,0 +1,18 @@
from uuid import UUID
from pydantic import BaseModel
from app.schemas.id_token import IdToken
class UserBase(BaseModel):
friendly_name: str
is_active: bool
class UserCreate(UserBase):
pass
class User(UserBase):
id: UUID
id_tokens: list[IdToken] = []
class Config:
from_attributes = True