recreate project

This commit is contained in:
root
2026-02-10 22:11:06 -05:00
commit 663c0cdbda
10149 changed files with 1379710 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class LoginActivityModel extends Model
{
protected $table = 'login_activity';
protected $primaryKey = 'id';
protected $allowedFields = [
'user_id',
'email',
'login_time',
'logout_time',
'ip_address',
'user_agent',
'school_year',
'semester',
'created_at',
'updated_at'
];
protected $useTimestamps = true;
protected $createdField = 'created_at';
protected $updatedField = 'updated_at';
public function getLastActivities($limit = 4)
{
return $this->orderBy('login_time', 'DESC')->findAll($limit);
}
}
?>