Viewing File: /home/assersoft/public_html/doctor-assistant/app/Models/TreatmentsModel.php

<?php

namespace App\Models;

use CodeIgniter\Model;

class TreatmentsModel extends Model
{
    protected $table                  = 'Treatments';
    protected $primaryKey             = 'treatment_id';

    protected $useAutoIncrement       = true;
    protected $returnType             = 'array';
    protected $useSoftDeletes         = false;

    protected $allowedFields          = ['treatment_name', 'treatment_start_date', 'treatment_end_date', 'treatment_cost', 'paid_amount', 'due_amount', 'patient_id', '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