add silaras to git repo

This commit is contained in:
ryan
2026-05-13 08:55:17 +07:00
commit 780f120c77
123 changed files with 11777 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class PasienModel extends Model
{
protected $table = 'pasien';
protected $primaryKey = 'id';
protected $allowedFields = [
'rm',
'nama',
'tgl_lahir',
'gender',
'alamat'
];
protected $useTimestamps = true;
protected $createdField = 'created_at';
protected $updatedField = 'updated_at';
// 🔵 cari pasien berdasarkan RM
public function findByRM($rm)
{
return $this->where('rm', $rm)->first();
}
}