Viewing File: /home/assersoft/public_html/audiogramnew/app/Models/TympanogramTestsModel.php

<?php

namespace App\Models;

use CodeIgniter\Model;

class TympanogramTestsModel extends Model
{
    protected $table            = 'tympanogramtests';
    protected $primaryKey       = 'tympanogramtest_id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
        'clinic_id',
        'patient_id',
        'test_date',
        'left_volume',
        'right_volume',
        'left_compliance',
        'right_compliance',
        'left_pressure_1',
        'right_pressure_1',
        'left_pressure_2',
        'right_pressure_2',
        'left_pressure_3',
        'right_pressure_3',
    ];

    protected bool $allowEmptyInserts = false;
    protected bool $updateOnlyChanged = true;

    protected array $casts = [];
    protected array $castHandlers = [];

    // Dates
    protected $useTimestamps = true;
    protected $dateFormat    = 'datetime';
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';

    // Validation
    protected $validationRules      = [];
    protected $validationMessages   = [];
    protected $skipValidation       = false;
    protected $cleanValidationRules = true;

    // Callbacks
    protected $allowCallbacks = true;
    protected $beforeInsert   = [];
    protected $afterInsert    = [];
    protected $beforeUpdate   = [];
    protected $afterUpdate    = [];
    protected $beforeFind     = [];
    protected $afterFind      = [];
    protected $beforeDelete   = [];
    protected $afterDelete    = [];
}

Back to Directory File Manager