fooder-api/fooder/model/preset_entry.py

22 lines
351 B
Python
Raw Normal View History

2023-10-27 15:12:48 +02:00
from pydantic import BaseModel
from typing import Optional
from .product import Product
class PresetEntry(BaseModel):
"""PresetEntry."""
id: int
grams: float
product: Product
preset_id: int
calories: float
protein: float
carb: float
fat: float
fiber: float
class Config:
from_attributes = True