<?php

namespace App\Models;

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

class CourierReconciliationImport extends Model
{
    use HasFactory;

    protected $guarded = [];

    protected $casts = [
        'import_date' => 'date',
        'summary' => 'array',
        'created_at' => 'datetime',
        'updated_at' => 'datetime',
    ];

    public function courier()
    {
        return $this->belongsTo(Courier::class);
    }

    public function rows()
    {
        return $this->hasMany(CourierReconciliationRow::class);
    }
}
