<?php
// App/Models/WHSQE_TableOfContent.php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WHSQE_TableOfContent extends BaseModel
{
    protected $fillable = ['title', 'del','customer_id','workspace_id'];

    protected $table = 'whsqe_table_of_content';
    
    protected $hidden = ['customer_id', 'workspace_id'];
    
    public function children()
    {
        return $this->hasMany(WHSQE_TableOfContentChild::class, 'whsqe_table_of_content_id');
    }
}