46 lines
1.0 KiB
PHP
46 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use CodeIgniter\Model;
|
|
|
|
class ClaimModel extends Model
|
|
{
|
|
protected $table = 'partner_claims';
|
|
protected $primaryKey = 'id';
|
|
protected $useAutoIncrement = true;
|
|
|
|
protected $returnType = 'array';
|
|
protected $useSoftDeletes = false;
|
|
|
|
protected $allowedFields = [
|
|
'claim_status_id',
|
|
'insurer_id',
|
|
'broker_id',
|
|
'policy_id',
|
|
'policy_no',
|
|
'insured_name',
|
|
'mobile',
|
|
'mail',
|
|
'manager_id',
|
|
'agent_id',
|
|
'claim_type',
|
|
'date_of_incident',
|
|
'place_of_incident',
|
|
'claim_description',
|
|
'spot_surveyor_name',
|
|
'spot_surveyor_contact',
|
|
'workshop_surveyor_name',
|
|
'workshop_surveyor_contact',
|
|
'remark',
|
|
'is_active',
|
|
'created_by',
|
|
'updated_by',
|
|
];
|
|
|
|
// Auto timestamps
|
|
protected $useTimestamps = true;
|
|
protected $createdField = 'created_at';
|
|
protected $updatedField = 'updated_at';
|
|
}
|