nhance_partner_be/app/Models/PolicyModel.php
2025-12-12 10:54:06 +05:30

59 lines
1.2 KiB
PHP

<?php
namespace App\Models;
use CodeIgniter\Model;
class PolicyModel extends Model
{
protected $table = 'partner_policy';
protected $primaryKey = 'id';
protected $allowedFields = [
'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',
// 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',
'broker_name',
'commission_amount',
'is_data_accuracy_checked',
];
protected $useTimestamps = false;
}