From 65ccffd6e2b01bc17ed525565c74c546e96197cf Mon Sep 17 00:00:00 2001 From: Hossein Date: Thu, 7 Aug 2025 03:02:13 +0330 Subject: [PATCH] sssss --- schemas.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/schemas.py b/schemas.py index 6ed1e48..cda4f93 100644 --- a/schemas.py +++ b/schemas.py @@ -11,15 +11,14 @@ class ScrapeRequest(BaseModel): class MediaItem(BaseModel): - media_type: str # image | video - media_url: str # original Instagram URL - local_media: str # full S3/MinIO URL + media_type: str # "image" or "video" + url: str # ✅ only S3/MinIO URL (renamed from local_media) class ScrapedPost(BaseModel): ig_post_id: str - media_type: str # image | video | carousel + media_type: str # "image", "video", or "carousel" caption: Optional[str] thumbnail_url: Optional[str] - local_media: List[MediaItem] - created_at: datetime \ No newline at end of file + local_media: List[MediaItem] # ✅ now only contains {"media_type", "url"} + created_at: datetime