Add hash to pydantic types for rom file

This commit is contained in:
Georges-Antoine Assi
2024-12-22 20:39:18 -05:00
parent 09a1b028bf
commit 8e4f26c07e
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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);
};