<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Penilaian extends Model
{
    use HasFactory;

    protected $table = 'penilaian';
    protected $primaryKey = 'PenilaianId';
    
    protected $guarded = [];

    // protected $fillable = [
    //     'ms_sekolah_id',
    //     'npsn',
    //     // 'ms_form_kriteria_id',
    //     'key',
    //     'page_number',
    //     'value',
    //     'skor',
    //     'status',
    //     'tahun',
    //     'created_by',
    //     'level_adiwiyata',
    // ];

    public function page()
    {
        return $this->belongsTo(\App\Models\Master\FormKriteria::class,'page_number','page_number');
    }
}
