nhance_partner_be/app/Models/PolicyModel.php

67 lines
1.4 KiB
PHP

<?php
namespace App\Models;
use CodeIgniter\Model;
class PolicyModel extends Model
{
protected $table = 'partner_policy';
protected $primaryKey = 'id';
protected $allowedFields = [
'rc_no',
'enquiry_id',
'quotation_id',
'insured_name',
'premium_amount',
'policy_number',
'issued_date',
'start_date',
'end_date',
'payment_mode',
'policy_pdf_file_name',
'policy_payment_receipt_file_name',
'is_active',
'agent_id',
'manager_id',
'client_id',
'client_policy_id',
'vehicle_id',
'policy_transaction_id',
'pt_oc_share_details_id',
'created_by',
'updated_by',
'updated_on',
// newly added
'tp',
'od',
'pa',
'cgst',
'sgst',
'igst',
'rto_state_code',
'rto_city_code',
'weight',
'fuel_type',
'date_of_registration',
'year_of_manufacture',
'engine_no',
'chassis_no',
'make',
'model',
'cubic_capacity',
'vehicle_type',
'product',
'broker_name',
'commission_amount',
'is_data_accuracy_checked',
'pos_id',
'commission_from_insurer',
'agent_retention_rate',
'manager_retention_rate',
'is_invoice_generated'
];
protected $useTimestamps = false;
}