nhance/app/Models/PartnerPolicyModel.php
venba-Inspriron-3558 88edf67aa1 CHANGE_Motor Cliams
2025-09-05 17:17:40 +05:30

43 lines
1.1 KiB
PHP
Executable File

<?php
namespace App\Models;
use CodeIgniter\Model;
class PartnerPolicyModel extends Model
{
protected $table = 'partner_policy';
protected $primaryKey = 'id';
protected $useAutoIncrement = true;
// Allowed fields (make sure to include only updatable/insertable ones)
protected $allowedFields = [
'quotation_id',
'insured_name',
'rc_no',
'premium_amount',
'policy_number',
'payment_mode',
'policy_pdf_file_name',
'policy_payment_receipt_file_name',
'is_active',
'issued_date',
'start_date',
'end_date',
'manager_id',
'client_id',
'client_policy_id',
'vehicle_id',
'policy_transaction_id',
'pt_oc_share_details_id',
'created_by',
'updated_by'
];
// Optional settings
protected $useTimestamps = true; // enables auto timestamp
protected $createdField = 'created_on';
protected $updatedField = 'updated_on';
protected $dateFormat = 'datetime';
}