<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ContentModerationCluster extends Model
{
    protected $table = 'content_moderation_clusters';

    protected $fillable = [
        'campaign_key',
        'cluster_reason',
        'review_bucket',
        'escalation_status',
        'cluster_score',
        'findings_count',
        'unique_users_count',
        'unique_domains_count',
        'latest_finding_at',
        'summary_json',
    ];

    protected $casts = [
        'cluster_score' => 'integer',
        'findings_count' => 'integer',
        'unique_users_count' => 'integer',
        'unique_domains_count' => 'integer',
        'latest_finding_at' => 'datetime',
        'summary_json' => 'array',
    ];
}