ScanOS/backend/app/data/schemas.py
2023-09-21 14:56:01 +02:00

13 lines
254 B
Python

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