<?php

namespace Modules\Vrc\Entities;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class VrcVehicleModel extends Model
{
    protected $table = 'vrc_vehicle_models';

    protected $fillable = ['business_id', 'make_id', 'name', 'name_ar', 'is_active'];

    protected $casts = ['is_active' => 'boolean'];

    public function make(): BelongsTo
    {
        return $this->belongsTo(VrcVehicleMake::class, 'make_id');
    }
}
