Files
serv_benchmark/backend/app/schemas/document.py
Gilles Soulier c67befc549 addon
2026-01-05 16:08:01 +01:00

26 lines
450 B
Python
Executable File

"""
Linux BenchTools - Document Schemas
"""
from pydantic import BaseModel
from typing import List
class DocumentResponse(BaseModel):
"""Document response"""
id: int
device_id: int
doc_type: str
filename: str
mime_type: str
size_bytes: int
uploaded_at: str
class Config:
from_attributes = True
class DocumentListResponse(BaseModel):
"""List of documents"""
items: List[DocumentResponse] = []