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

<?php

namespace App\Models;

use CodeIgniter\Model;

class UsersModel extends Model
{
    protected $table                  = 'Users';
    protected $primaryKey             = 'user_id';

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

    protected $allowedFields          = ['user_type', 'activation_token', 'reset_token', 'refresh_token', 'is_verified', 'password', 'first_name', 'last_name', 'email', 'phone', 'consultation_hours', '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