<?php

declare(strict_types=1);

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AcademyContentMetricDaily extends Model
{
    protected $table = 'academy_content_metrics_daily';

    protected $fillable = [
        'date',
        'content_type',
        'content_id',
        'views',
        'unique_visitors',
        'guest_views',
        'user_views',
        'subscriber_views',
        'engaged_views',
        'scroll_50',
        'scroll_75',
        'scroll_100',
        'likes',
        'saves',
        'prompt_copies',
        'negative_prompt_copies',
        'starts',
        'completions',
        'upgrade_clicks',
        'premium_preview_views',
        'search_impressions',
        'search_clicks',
        'bounce_count',
        'avg_engaged_seconds',
        'popularity_score',
        'conversion_score',
    ];

    protected $casts = [
        'date' => 'date',
        'popularity_score' => 'decimal:2',
        'conversion_score' => 'decimal:2',
    ];
}