61 lines
1.5 KiB
PHP
61 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use CodeIgniter\Model;
|
|
|
|
class EndorsementModel extends Model
|
|
{
|
|
protected $table = 'partner_endorsement_request';
|
|
protected $primaryKey = 'id';
|
|
protected $returnType = 'array';
|
|
protected $useSoftDeletes = false;
|
|
|
|
protected $allowedFields = [
|
|
'policy_from',
|
|
'client_id',
|
|
'client_policy_id',
|
|
'insurer_id',
|
|
'insurer_branch_id',
|
|
'manager_id',
|
|
'agent_id',
|
|
'policy_number',
|
|
'endorsement_no',
|
|
'endorsement_type',
|
|
'endorsement_description',
|
|
'status',
|
|
'endorsement_file_name',
|
|
'endorsement_completion_file',
|
|
'contact_person',
|
|
'financia_or_non_financial',
|
|
'endorsement_premium',
|
|
'pending_days',
|
|
'policy_start_date',
|
|
'policy_end_date',
|
|
'reg_no',
|
|
'broker_id',
|
|
'insured_name',
|
|
'is_data_accuracy_checked',
|
|
'commission_amount',
|
|
'policy_transaction_id',
|
|
'pt_oc_share_details_id',
|
|
'payment_mode_id',
|
|
'created_at',
|
|
'updated_by',
|
|
'updated_at',
|
|
'is_active',
|
|
'created_by'
|
|
];
|
|
|
|
// Auto timestamps
|
|
protected $useTimestamps = true;
|
|
protected $createdField = 'created_at';
|
|
protected $updatedField = 'updated_at';
|
|
protected $deletedField = '';
|
|
|
|
// Validation rules
|
|
protected $validationRules = [];
|
|
protected $validationMessages = [];
|
|
protected $skipValidation = false;
|
|
}
|