<?php

namespace App\Models;

use CodeIgniter\Model;

class DoctorExperiences1Model extends Model
{
    protected $table            = 'DoctorExperiences1';
    protected $primaryKey       = 'Id';
    // protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
        'Id', 'nDoctorId', 'vcEmployer', 'vcDepartment', 'dtmFrom', 'dtmTo', 'nsIsCurrent', 'nField1', 'nField2', 'nField3', 'flField1', 'flField2', 'flField3', 'vcField1', 'vcField2', 'vcField3'
    ];

    protected bool $allowEmptyInserts = false;

    // Dates
    protected $useTimestamps = false;
    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    = [];
}
