<?php

namespace App\Models;

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

class MetaAdSnapshot extends Model
{
    use HasFactory;

    protected $guarded = [];

    protected $casts = [
        'date' => 'date',
        'spend' => 'decimal:6',
        'cpc' => 'decimal:6',
        'cpm' => 'decimal:6',
        'ctr' => 'decimal:6',
        'conversions' => 'decimal:4',
        'leads' => 'decimal:4',
        'purchases' => 'decimal:4',
        'purchase_value' => 'decimal:6',
    ];
}
