Files
kulakpos_web/public/restaurant/Modules/HRM/app/Models/Interview.php

35 lines
689 B
PHP
Raw Normal View History

2026-03-15 17:08:23 +07:00
<?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);
}
}