mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-11 04:58:33 +03:00
15 lines
242 B
Python
15 lines
242 B
Python
from pydantic import BaseModel
|
|
from datetime import datetime
|
|
|
|
class TaskCreate(BaseModel):
|
|
id: str
|
|
url: str
|
|
author: str
|
|
result: dict
|
|
|
|
|
|
class Task(TaskCreate):
|
|
created_at: datetime
|
|
|
|
class Config:
|
|
orm_mode = True |