<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class FormVehicleRunningCost extends Model
{
    use SoftDeletes;

    protected $table = 'form_vehicle_running_cost';
    protected $fillable = [
        'expense_number',
        'user_id',
        'tanggal',
        'liter',
        'total',
        'approved_total',
        'jarak',
        'tipe_bensin',
        'nopol',
        'keterangan',
        'bukti_total',
        'account_number',
        'status',
        'approved_at',
        'approved2_at',
        'approved_by',
        'approved2_by',
        'final_approved_at',
        'final_approved_by',
    ];

    public function user()
    {
        return $this->belongsTo('App\Models\Admin', 'user_id');
    }
}
