Files
romm/backend/endpoints/responses/firmware.py
Georges-Antoine Assi ebc91b0502 fix bad git push
2025-01-09 21:10:20 -05:00

33 lines
567 B
Python

from datetime import datetime
from typing import TypedDict
from .base import BaseModel
class FirmwareSchema(BaseModel):
id: int
file_name: str
file_name_no_tags: str
file_name_no_ext: str
file_extension: str
file_path: str
file_size_bytes: int
full_path: str
is_verified: bool
crc_hash: str
md5_hash: str
sha1_hash: str
created_at: datetime
updated_at: datetime
class Config:
from_attributes = True
class AddFirmwareResponse(TypedDict):
uploaded: int
firmware: list[FirmwareSchema]