<?php

namespace App\Models;

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

class StudentCA extends Model
{
    use HasFactory;
    protected $fillable = [
        'result_id',
        'ca1',
        'ca2',
        'exam',
        'total',
        'comment',
    ];
    public function subj(){
        return $this->belongsTo(Subject::class,'subject_id');
    }
}
