<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

final class JobCharge extends Model
{
    protected $table = 'job_charges';

    protected $fillable = [
        'transport_job_id',
        'charge_type',
        'description',
        'amount',
        'tax_code_id',
        'is_billable',
    ];

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