'integer', 'parent_user_id' => 'integer', 'created_by' => 'integer', // if these are DATE/TIME columns: 'date' => 'date', // time is typically stored as TIME or string; keep as string unless DATETIME 'time' => 'string', ]; /* Optional relationships */ public function student() { return $this->belongsTo(Student::class, 'student_id'); } public function parent() { return $this->belongsTo(User::class, 'parent_user_id'); } public function creator() { return $this->belongsTo(User::class, 'created_by'); } }