43 lines
940 B
PHP
43 lines
940 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use CodeIgniter\Model;
|
|
|
|
class ClaimModel extends Model
|
|
{
|
|
protected $table = 'ticket_master';
|
|
protected $primaryKey = 'id';
|
|
protected $useAutoIncrement = true;
|
|
|
|
protected $returnType = 'array';
|
|
protected $useSoftDeletes = false;
|
|
|
|
protected $allowedFields = [
|
|
'ticket_type_id',
|
|
'claim_status_id',
|
|
'insurer_id',
|
|
'client_id',
|
|
'client_policy_id',
|
|
'policy_no',
|
|
'emp_name',
|
|
'insured_name',
|
|
'emp_mobile',
|
|
'emp_mail',
|
|
'emp_personal_mail',
|
|
'claim_type',
|
|
'created_by',
|
|
'updated_by',
|
|
'manager_id',
|
|
'agent_id',
|
|
'vehicle_id',
|
|
'claim_description',
|
|
'is_active',
|
|
];
|
|
|
|
// Auto timestamps
|
|
protected $useTimestamps = true;
|
|
protected $createdField = 'created_at';
|
|
protected $updatedField = 'updated_at';
|
|
}
|