Prepare monorepo
This commit is contained in:
parent
a1ddb43ed0
commit
938582155d
61 changed files with 5 additions and 5 deletions
33
backend/app/schemas/id_token.py
Normal file
33
backend/app/schemas/id_token.py
Normal file
|
@ -0,0 +1,33 @@
|
|||
from datetime import datetime
|
||||
from typing import Optional
|
||||
from uuid import UUID
|
||||
from pydantic import BaseModel
|
||||
|
||||
class IdTokenBase(BaseModel):
|
||||
friendly_name: str
|
||||
is_active: bool
|
||||
owner_id: UUID
|
||||
token: str
|
||||
|
||||
class IdTokenCreate(IdTokenBase):
|
||||
pass
|
||||
|
||||
class IdTokenUpdate(BaseModel):
|
||||
friendly_name: Optional[str] = None
|
||||
is_active: Optional[bool] = None
|
||||
owner_id: Optional[UUID] = None
|
||||
|
||||
class IdToken(IdTokenBase):
|
||||
id: UUID
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
class IdTokenLearnBase(BaseModel):
|
||||
user_id: UUID
|
||||
|
||||
class IdTokenLearnRequest(IdTokenLearnBase):
|
||||
until: Optional[datetime] = None
|
||||
|
||||
class IdTokenLearnResponse(IdTokenLearnBase):
|
||||
until: datetime
|
Loading…
Add table
Add a link
Reference in a new issue