phase-2: asset register, detail overview, asset picker, attachments

This commit is contained in:
Atharv1705
2026-11-12 12:38:50 +05:30
parent e58232a657
commit ee437e3adf
27 changed files with 4442 additions and 14 deletions
+22
View File
@@ -0,0 +1,22 @@
from datetime import datetime
from typing import Optional
from pydantic import BaseModel, ConfigDict
class AttachmentOut(BaseModel):
model_config = ConfigDict(from_attributes=True)
id: int
entity_type: str
entity_id: int
original_name: str
mime_type: str
size_bytes: int
uploaded_by_id: int
uploaded_by_name: Optional[str] = None
uploaded_at: datetime
class AttachmentListOut(BaseModel):
items: list[AttachmentOut]
total: int