from django_elasticsearch_dsl_drf.serializers import DocumentSerializer
from apps.search.documents import UserRelationDocument


class UserRelationDocumentSerializer(DocumentSerializer):
    """Serializer for user relation document."""

    class Meta:
        document = UserRelationDocument
        fields = (
            'id',
            'user',
            'organization',
            'role'
        )
