35 lines
689 B
PHP
35 lines
689 B
PHP
<?php
|
|
|
|
namespace Modules\HRM\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class Interview extends Model
|
|
{
|
|
protected $fillable = [
|
|
'restaurant_id',
|
|
'candidate_id',
|
|
'department_id',
|
|
'interview_date',
|
|
'interviewer_name',
|
|
'feedback',
|
|
'rating',
|
|
'status',
|
|
];
|
|
|
|
public const TABLE_NAME = 'interviews';
|
|
|
|
protected $table = self::TABLE_NAME;
|
|
|
|
public function candidate(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Candidate::class);
|
|
}
|
|
|
|
public function department(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Department::class);
|
|
}
|
|
}
|