feat(Model): Added new table model

This commit is contained in:
Black_Raven committed 2025-11-29 16:05:27 +03:00
1 parent fdcc935a18
commit bd19100eb4
1 file changed
+22
+22
View File
@@ -0,0 +1,22 @@
from pydantic import BaseModel
from typing import Optional
class ProductFilter(BaseModel):
id: int
product_id: int
filter_key: str
value: str
class Config:
from_attributes = True
class ProductFilterCreate(BaseModel):
product_id: int
filter_key: str
value: str
class ProductFilterUpdate(BaseModel):
value: Optional[str] = None