<?php

// app/Models/Car.php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Car extends Model
{
    protected $fillable = [
        'make', 'model', 'reg_year', 'varient', 'engine_capacity', 'mileage', 'fuel_type',
        'inspection_date', 'chassis_no', 'engine_no', 'registration_no', 'location',
        'registered_city', 'transmission', 'color', 'inspector_comments', 'exterior_sketch_data',
        'demond', 'ratings', 'picture1', 'picture2', 'picture3', 'picture4', 'picture5',
        'picture6', 'picture7', 'picture8', 'picture9', 'picture10',
        'car_name', 'engine_number', 'transmission_type', 'fuel_average', 'car_image', 'status', 'purchase_price','khan_motors',

        // ✅ new field
        'investor_id','invester_price', 'general_comments'
    ];

    protected $dates = [
        'inspection_date', 'created_at', 'updated_at'
    ];

    public function investor()
    {
        return $this->belongsTo(Investor::class);
    }
}

