belongsTo(Department::class, 'department_id'); } public function designation() { return $this->belongsTo(Designation::class, 'designation_id'); } public function jobPoster() { return $this->belongsTo(Employee::class, 'createdBy'); } public function interviewSchedules() { return $this->hasMany(InterviewSchedule::class, 'job_post_id'); } public function jobApplications() { return $this->hasMany(JobApplication::class, 'job_post_id'); } }