mirror of
https://github.com/rommapp/romm.git
synced 2026-07-01 08:16:21 +00:00
40 lines
683 B
Python
40 lines
683 B
Python
from datetime import datetime
|
|
|
|
from .base import BaseModel
|
|
|
|
|
|
class BaseAsset(BaseModel):
|
|
id: int
|
|
rom_id: int
|
|
user_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
|
|
download_path: str
|
|
|
|
missing_from_fs: bool
|
|
|
|
created_at: datetime
|
|
updated_at: datetime
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|
|
|
|
class ScreenshotSchema(BaseAsset):
|
|
pass
|
|
|
|
|
|
class SaveSchema(BaseAsset):
|
|
emulator: str | None
|
|
screenshot: ScreenshotSchema | None
|
|
|
|
|
|
class StateSchema(BaseAsset):
|
|
emulator: str | None
|
|
screenshot: ScreenshotSchema | None
|