ScanOS/backend/app/data/schemas.py

13 lines
254 B
Python
Raw Permalink Normal View History

2023-09-21 14:56:01 +02:00
from pydantic import BaseModel
import app.scanner.enums as scan
class ScanPage(BaseModel):
filename: str
size_bytes: int
class Config():
orm_mode = True
class ScanStatus(BaseModel):
pages: list[ScanPage]
status: scan.Status