auth from extension

This commit is contained in:
msramalho
2023-02-24 15:39:11 +01:00
parent 75e98f5f31
commit f6b116554f
14 changed files with 164 additions and 224 deletions

15
src/db/schemas.py Normal file
View File

@@ -0,0 +1,15 @@
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