30 lines
556 B
PHP
30 lines
556 B
PHP
<?php
|
|
|
|
namespace Modules\HRM\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class Award extends Model
|
|
{
|
|
protected $fillable = [
|
|
'restaurant_id',
|
|
'employee_id',
|
|
'title',
|
|
'description',
|
|
'date_awarded',
|
|
'amount',
|
|
'award_type',
|
|
'status',
|
|
];
|
|
|
|
public const TABLE_NAME = 'awards';
|
|
|
|
protected $table = self::TABLE_NAME;
|
|
|
|
public function employee(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Employee::class);
|
|
}
|
|
}
|