<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class WashCategory extends Model
{
    use HasFactory;
    protected $table = "wash_categories";
    protected $guarded = [];
    protected $fillable = ['wash_name','wash_desc','cwo_id','price_sedan_hatchback','price_suv_cab','price_van_mini','price_tucks_busses','is_active'];
    public $timestamps = true;

    public function cwoDetail() {
        return $this->belongsTo(\App\Models\CarWashOwner::class, 'cwo_id', 'id')->with('currencyDetail');
    }
}
