Viewing File: /home/assersoft/public_html/doctor-assistant/app/Models/PatientsModel.php
<?php
namespace App\Models;
use CodeIgniter\Model;
class PatientsModel extends Model
{
protected $table = 'Patients';
protected $primaryKey = 'patient_id';
protected $useAutoIncrement = true;
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $allowedFields = ['patient_name', 'phone', 'gender', 'age', 'clinic_id'];
protected bool $allowEmptyInserts = false;
protected bool $updateOnlyChanged = true;
protected $useTimestamps = true;
protected $dateFormat = 'datetime';
protected $createdField = 'created_at';
protected $updatedField = 'updated_at';
protected $validationRules = [];
protected $validationMessages = [];
}
Back to Directory
File Manager