from rest_framework import serializers

from .models import Products


class ProductsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Products
        fields = ['uuid', 'name', 'description', 'logo', 'created']


class ProductsUpdateSerializer(serializers.ModelSerializer):
    class Meta:
        model = Products
        fields = '__all__'
