mirror of
https://github.com/rommapp/romm.git
synced 2026-02-19 07:50:57 +01:00
35 lines
594 B
Python
35 lines
594 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
|
|
|
|
missing_from_fs: bool
|
|
|
|
created_at: datetime
|
|
updated_at: datetime
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|
|
|
|
class AddFirmwareResponse(TypedDict):
|
|
uploaded: int
|
|
firmware: list[FirmwareSchema]
|