<reponame>mbaragiola/drf-demo-app
from rest_framework.serializers import ModelSerializer

from apps.tables.models import Table


class TableSerializer(ModelSerializer):

    class Meta:
        model = Table
        fields = ['table_name', 'fields', ]

    # TODO: Validations could be added here.

from rest_framework.serializers import ModelSerializer

from apps.tables.models import Table


class TableSerializer(ModelSerializer):

    class Meta:
        model = Table
        fields = ['table_name', 'fields', ]

    # TODO: Validations could be added here.
# TODO: Validations could be added here.