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
    content_type: str
    is_deleted: bool = False
