From b844859da350c3acb219a535bbdace2a41c6b038 Mon Sep 17 00:00:00 2001 From: Leopoldadmin Date: Sat, 4 Jul 2026 00:29:11 +0000 Subject: [PATCH] feat(core): add attachment schemas --- app/schemas/attachment.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/schemas/attachment.py diff --git a/app/schemas/attachment.py b/app/schemas/attachment.py new file mode 100644 index 0000000..1090b6f --- /dev/null +++ b/app/schemas/attachment.py @@ -0,0 +1,23 @@ +"""Attachment schemas — response and list.""" + +from __future__ import annotations + +from pydantic import BaseModel + + +class AttachmentResponse(BaseModel): + id: str + entity_type: str + entity_id: str + filename: str + file_path: str + mime_type: str + file_size: int + uploaded_by: str | None = None + created_at: str | None = None + updated_at: str | None = None + + +class AttachmentListResponse(BaseModel): + items: list[AttachmentResponse] + total: int