from rest_framework import serializers
from . import models

class InitialPatientSerializer(serializers.ModelSerializer):

    class Meta:
        model = models.PatientModel
        fields = ['name', 'id']


class DoctorsSerializer(serializers.ModelSerializer):

    class Meta:
        model = models.DoctorModel
        fields = '__all__'


class FriendsSerializer(serializers.ModelSerializer):

    class Meta:
        model = models.FriendModel
        fields = '__all__'


class PatientSerializer(serializers.ModelSerializer):

    class Meta:
        model = models.PatientModel
        fields = '__all__'