update and fix totp schema (#785)
This commit is contained in:
@@ -7,7 +7,6 @@ class TOTPCodeBase(BaseModel):
|
|||||||
model_config = ConfigDict(from_attributes=True)
|
model_config = ConfigDict(from_attributes=True)
|
||||||
|
|
||||||
totp_identifier: str | None = None
|
totp_identifier: str | None = None
|
||||||
organization_id: str | None = None
|
|
||||||
task_id: str | None = None
|
task_id: str | None = None
|
||||||
workflow_id: str | None = None
|
workflow_id: str | None = None
|
||||||
source: str | None = None
|
source: str | None = None
|
||||||
@@ -18,12 +17,12 @@ class TOTPCodeBase(BaseModel):
|
|||||||
|
|
||||||
class TOTPCodeCreate(TOTPCodeBase):
|
class TOTPCodeCreate(TOTPCodeBase):
|
||||||
totp_identifier: str
|
totp_identifier: str
|
||||||
organization_id: str
|
|
||||||
content: str
|
content: str
|
||||||
|
|
||||||
|
|
||||||
class TOTPCode(TOTPCodeCreate):
|
class TOTPCode(TOTPCodeCreate):
|
||||||
totp_code_id: str
|
totp_code_id: str
|
||||||
code: str
|
code: str
|
||||||
|
organization_id: str
|
||||||
created_at: datetime
|
created_at: datetime
|
||||||
modified_at: datetime
|
modified_at: datetime
|
||||||
|
|||||||
Reference in New Issue
Block a user