<?php

namespace App\Models\Admin;

use App\Traits\UuidTrait;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class MsBidangPenelitianKategori extends Model
{
    use HasFactory;
    use UuidTrait;

    public $incrementing = false;
    protected $table = 'ms_bidang_penelitian_kategori';
    protected $keyType = 'string';

    protected $fillable = [
        'id', 'namabidang', 'userid_created', 'userid_updated', 'created_at', 'updated_at',
    ];

    public function children()
    {
        return $this->hasMany(MsBidangPenelitian::class, 'id_kategori', 'id');
    }
}
