<?php

namespace App\Models;

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

class SchoolProfile extends Model
{
    use HasFactory;

    // --- FIX: Define the table name explicitly ---
    // Change 'school_profile' to whatever your actual table name is in the database.
    // If you created it manually, it might be singular 'school_profile'.
    protected $table = 'school_profile'; 

    protected $guarded = ['id'];

    // Relasi ke Jam Pelajaran
    public function lessonHours()
    {
        return $this->hasMany(\App\Models\LessonHour::class, 'school_profile_id');
    }
}