<?php

namespace Modules\Lpj\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
// use Modules\Lpj\Database\Factories\CategoryDaftarPustakaFactory;

class CategoryDaftarPustaka extends Model
{
    use HasFactory;

    protected $table = 'category_daftar_pustaka';
    /**
     * The attributes that are mass assignable.
     */
    protected $fillable = [
        'id',
        'name',
        'code',
    ];

    public function daftarPustaka(){
        return $this->hasMany(DaftarPustaka::class, 'category_id');
    }

}
