41 lines
925 B
PHP
Executable File
41 lines
925 B
PHP
Executable File
<?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 (you’re 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',
|
||
];
|
||
|
||
}
|