<?php

namespace App\Master\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Stancl\Tenancy\Database\Concerns\CentralConnection;

class CapVehicleAutoGrabId extends Model
{
    use CentralConnection;

    protected $table = 'cap_vehicle_autograb_ids';

    protected $fillable = [
        'cap_vehicle_id',
        'autograb_vehicle_id',
    ];

    protected $casts = [
        'cap_vehicle_id' => 'integer',
    ];

    public function capVehicle(): BelongsTo
    {
        return $this->belongsTo(CapVehicle::class, 'cap_vehicle_id');
    }
}
