mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-23 15:18:12 +02:00
Merge pull request #48 from R0m1k3/antigravity
feat: Introduce item API endpoints for CRUD, category management, pri…
This commit is contained in:
2 files changed
+27
No files matched your search
@@ -48,6 +48,15 @@ class ItemResponse(ItemCreate):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
class PriceHistoryResponse(BaseModel):
|
||||
id: int
|
||||
price: float
|
||||
timestamp: datetime
|
||||
price_confidence: float | None = None
|
||||
in_stock_confidence: float | None = None
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
class SettingsUpdate(BaseModel):
|
||||
key: str
|
||||
value: str
|
||||
|
||||
Reference in new issue
Block a user