From 49edb4a8cfe23e01a3d74369c28e91b3e8b91612 Mon Sep 17 00:00:00 2001 From: Hossein Date: Mon, 11 Aug 2025 22:54:43 +0330 Subject: [PATCH] update schema --- schemas.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/schemas.py b/schemas.py index 4b75e73..7ab5322 100644 --- a/schemas.py +++ b/schemas.py @@ -3,19 +3,15 @@ from typing import List, Optional from uuid import UUID from datetime import datetime - class ScrapeRequest(BaseModel): username: str seller_id: UUID max_count: int = Field(default=5, ge=1, le=50) - since_taken_at: Optional[int] = None # epoch seconds for cursor-like behavior - class ScrapedPost(BaseModel): ig_post_id: str media_type: str # "image", "video", or "carousel" caption: Optional[str] thumbnail_url: Optional[str] - remote_urls: List[str] # remote URLs to be uploaded later - taken_at: int # epoch seconds - code: Optional[str] = None + local_media: List[str] # ✅ list of S3 URLs only + created_at: datetime