init backend presensi

This commit is contained in:
mwpn
2026-03-05 14:37:36 +07:00
commit b4fda6b9c9
319 changed files with 27261 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Modules\Auth\Entities;
use CodeIgniter\Entity\Entity;
/**
* User Entity
*/
class User extends Entity
{
protected $allowedFields = [
'name',
'email',
'password_hash',
'is_active',
];
protected $casts = [
'id' => 'integer',
'is_active' => 'boolean',
'created_at' => 'datetime',
'updated_at' => 'datetime',
];
public function isActive(): bool
{
return (bool) ($this->attributes['is_active'] ?? true);
}
}