<?php

namespace Modules\Lpj\Models;

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

class DaftarPustaka extends Model
{
    use HasFactory;

    protected $table = 'daftar_pustaka';

    /**
     * The attributes that are mass assignable.
     */
    protected $fillable = [
        'id',
        'category_id',
        'judul',
        'attachment',
        'deskripsi',
    ];

    public function category(){
        return $this->belongsTo(CategoryDaftarPustaka::class);
    }
}
