<?php

namespace App\Models;

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

class ReportCard extends Model
{
    use HasFactory;
    protected $table = 'report_cards'; // Define the table name

    protected $fillable = [
        'student_id',
        'grade',
        'report_card_image',
    ]; 
    public function Studentdetails()
    {
        return $this->hasOne(Studentdetails::class, 'id', 'student_id');
    }
}
