from rest_framework import serializers

from .models import Ingredient


class IngredientSerializer(serializers.ModelSerializer):
    class Meta:
        model = Ingredient
        fields = ["name", "category", "unit", "cost_per_unit", "available"]


class QueryParamSerializer(serializers.Serializer):
    price = serializers.FloatField()
