'integer', 'qty_change' => 'integer', 'performed_by' => 'integer', 'teacher_id' => 'integer', 'student_id' => 'integer', 'class_section_id' => 'integer', ]; /* Optional relationships */ public function item() { return $this->belongsTo(InventoryItem::class, 'item_id'); } public function performer() { return $this->belongsTo(User::class, 'performed_by'); } public function teacher() { return $this->belongsTo(User::class, 'teacher_id'); } public function student() { return $this->belongsTo(Student::class, 'student_id'); } public function classSection() { return $this->belongsTo(ClassSection::class, 'class_section_id'); } }