<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

final class JobCost extends Model
{
    protected $table = 'job_costs';

    protected $fillable = [
        'transport_job_id',
        'trip_id',
        'vendor_id',
        'cost_type',
        'description',
        'amount',
        'tax_code_id',
        'is_accrued',
    ];

    protected function casts(): array
    {
        return ['amount'=>'decimal:4', 'is_accrued'=>'boolean'];
    }
}
