added user images partitioning

This commit is contained in:
2025-12-12 16:17:23 -05:00
parent 9b90ca12fb
commit f8d709f292
22 changed files with 91 additions and 42 deletions

View File

@@ -7,6 +7,7 @@ class Image(BaseModel):
type: int
extension: str
permanent: bool = False
user: str | None = None
@classmethod
def from_dict(cls, d: dict):
@@ -17,7 +18,8 @@ class Image(BaseModel):
permanent=d.get('permanent', False),
id=d.get('id'),
created_at=d.get('created_at'),
updated_at=d.get('updated_at')
updated_at=d.get('updated_at'),
user=d.get('user')
)
def to_dict(self):
@@ -25,6 +27,7 @@ class Image(BaseModel):
base.update({
'type': self.type,
'permanent': self.permanent,
'extension': self.extension
'extension': self.extension,
'user': self.user
})
return base