migrate to gtea from bistbucket
This commit is contained in:
34
public/restaurant/Modules/HRM/app/Models/Interview.php
Normal file
34
public/restaurant/Modules/HRM/app/Models/Interview.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user