mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 18:43:23 +01:00
Add hash to pydantic types for rom file
This commit is contained in:
@@ -101,6 +101,9 @@ class RomFileSchema(BaseModel):
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
last_modified: datetime
|
||||
crc_hash: str | None
|
||||
md5_hash: str | None
|
||||
sha1_hash: str | None
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
@@ -12,5 +12,8 @@ export type RomFileSchema = {
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
last_modified: string;
|
||||
crc_hash: (string | null);
|
||||
md5_hash: (string | null);
|
||||
sha1_hash: (string | null);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user