<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class MetaAdsInsight extends Model
{
    use HasFactory;

    protected $guarded = [];

    protected $casts = [
        'insight_date' => 'date',
        'impressions' => 'integer',
        'clicks' => 'integer',
        'add_to_cart' => 'float',
        'purchases' => 'float',
        'spend' => 'float',
        'purchase_value' => 'float',
        'raw_response' => 'array',
        'synced_at' => 'datetime',
    ];
}
