from rest_framework import serializers
from crm.models import Campaign

class CampaignSerializer(serializers.ModelSerializer):
    class Meta:
        model = Campaign
        fields = [
            'id',
            'name',
            'description',
            'campaign_type',
            'location',
            'start_date',
            'end_date',
            'budget',
            'expected_revenue',
            'created_by',
            'status',
            'created_at',
            'updated_at',
        ]
