<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UpworkSyncLog extends Model
{
    protected $fillable = [
        'status',
        'contracts_fetched',
        'sales_created',
        'sales_updated',
        'error_message',
        'raw_summary',
        'synced_at',
    ];

    protected function casts(): array
    {
        return [
            'synced_at'   => 'datetime',
            'raw_summary' => 'array',
        ];
    }
}
