<?php

namespace Modules\Vrc\Entities;

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

class VrcServiceCategory extends Model
{
    protected $table = 'vrc_service_categories';

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

    protected $casts = ['is_active' => 'boolean', 'sort_order' => 'integer'];

    public function services(): HasMany
    {
        return $this->hasMany(VrcService::class, 'category_id');
    }
}
