nhance/app/Models/PartnerEndorsementRequestModel.php
2025-09-09 10:55:09 +05:30

41 lines
925 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Models;
use CodeIgniter\Model;
class PartnerEndorsementRequestModel extends Model
{
protected $table = 'partner_endorsement_request';
protected $primaryKey = 'id';
// Auto-increment
protected $useAutoIncrement = true;
// Return type
protected $returnType = 'array';
// Soft deletes (youre using is_active instead of deleted_at, so keep it false)
protected $useSoftDeletes = false;
// Allowed fields (columns you want to insert/update)
protected $allowedFields = [
'id',
'client_id',
'client_policy_id',
'insurer_id',
'insurer_branch_id',
'policy_number',
'endorsement_no',
'endorsement_type',
'endorsement_description',
'updated_by',
'is_active',
'created_by',
'manager_id',
'agent_id',
'status',
];
}