31 lines
562 B
PHP
31 lines
562 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class BiometricAttendance extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'branch_id',
|
|
'biometric_emp_id',
|
|
'punch_time',
|
|
'punch_type',
|
|
'terminal_alias',
|
|
'sync_status',
|
|
];
|
|
|
|
protected $casts = [
|
|
'punch_time' => 'datetime',
|
|
'punch_type' => 'integer',
|
|
];
|
|
|
|
public function branch()
|
|
{
|
|
return $this->belongsTo(Branch::class);
|
|
}
|
|
}
|