37 lines
816 B
PHP
37 lines
816 B
PHP
<?php
|
|
|
|
namespace Modules\Attendance\Models;
|
|
|
|
use App\Models\Scopes\CreatedByScope;
|
|
use Illuminate\Database\Eloquent\Attributes\ScopedBy;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
#[ScopedBy([CreatedByScope::class])]
|
|
class Attendance extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'tbl_attendances';
|
|
protected $primaryKey = 'attendance_id';
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected $fillable = [
|
|
'employee_id',
|
|
'clock_in_time',
|
|
'clock_out_time',
|
|
'clock_in_ip',
|
|
'clock_out_ip',
|
|
'work_from_type',
|
|
'type',
|
|
'date',
|
|
'status',
|
|
'total_hours',
|
|
'description',
|
|
'remarks',
|
|
'createdBy',
|
|
'updatedBy',
|
|
];
|
|
}
|