<?php
namespace App\Models;
use CodeIgniter\Model;

class UserModel extends Model
{
    protected $table          = 'users';
    protected $primaryKey     = 'id';
    protected $useTimestamps  = false;
    protected $useSoftDeletes = false;
    protected $deletedField   = 'deleted_at';
    protected $hiddenFields   = ['password_hash','password_reset_token'];
    protected $allowedFields  = ['company_id','role_id','location_id','first_name','last_name','email','password_hash','phone','photo_path','color','initials','hourly_rate','status','last_login_at','password_reset_token','password_reset_at','notif_prefs','created_at','updated_at','deleted_at'];
}
