'array', 'current_mastery' => 'array', 'snapshot_time' => 'datetime', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'overall_mastery' => 'decimal:4', ]; public function student(): BelongsTo { return $this->belongsTo(Student::class, 'student_id', 'student_id'); } public function scopeForStudent($query, string $studentId) { return $query->where('student_id', $studentId); } }