from .models import Post
from rest_framework import serializers

class PostSerializer(serializers.ModelSerializer):
    class Meta:
        model = Post
        fields = [
            'id',
            'post_type',
            'content',
            'upvotes',
            'downvotes',
            'date',
            'total_votes'
        ]