add updated_at fields
This commit is contained in:
@@ -45,6 +45,7 @@ class ShopUpdate(BaseModel):
|
||||
class Shop(ShopBase):
|
||||
id: int
|
||||
created_at: datetime
|
||||
updated_at: Optional[datetime] = None
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
@@ -87,6 +88,7 @@ class ShoppingEventUpdate(BaseModel):
|
||||
class ShoppingEventResponse(ShoppingEventBase):
|
||||
id: int
|
||||
created_at: datetime
|
||||
updated_at: Optional[datetime] = None
|
||||
shop: Shop
|
||||
groceries: List[GroceryWithEventData] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user