beerds/server/modules/attachments/domains/attachments.py

19 lines
406 B
Python

from dataclasses import dataclass
from datetime import datetime
from dataclasses_ujson.dataclasses_ujson import UJsonMixin # type: ignore
@dataclass(frozen=True)
class Attachment(UJsonMixin):
id: str
created_at: datetime
updated_at: datetime
size: int
storage_driver_name: str
path: str
media_type: str
created_by: str
content_type: str
is_deleted: bool = False