Implement transaction handling
This commit is contained in:
parent
161c6aa027
commit
a65dee8962
16 changed files with 331 additions and 94 deletions
|
@ -1,3 +1,4 @@
|
|||
from datetime import datetime
|
||||
from typing import Optional
|
||||
from uuid import UUID
|
||||
from pydantic import BaseModel
|
||||
|
@ -22,4 +23,13 @@ class IdToken(IdTokenBase):
|
|||
id: UUID
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
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