<?php

namespace App\Models;

use CodeIgniter\Model;

class AgentModel extends Model
{
    protected $table            = 'partner_agent';
    protected $primaryKey       = 'id';
    protected $allowedFields    = [
        'name',
        'email',
        'mobile',
        'address',
        'agent_code',
        'certificate_file_name',
        'email_otp',
        'firebase_device_token',
        'manager_id',
        'sales_executive_id',
        'commission_retain',
        'is_active',
        'created_by',
        'created_on',
        'updated_by',
        'updated_on',
        'pos_id',
        'retention_rate'
    ];

    protected $useTimestamps = false; // we manually handle created_on & updated_on
}
