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/id_token.py Normal file
View file

@ -0,0 +1,18 @@
from uuid import UUID
from pydantic import BaseModel
from app.schemas.user import User
class IdTokenBase(BaseModel):
title: str
is_active: bool
class IdTokenCreate(IdTokenBase):
pass
class IdToken(IdTokenBase):
id: UUID
owner: User
class Config:
from_attributes = True