<?php

namespace App\Models;

use CodeIgniter\Model;

class ForexModel extends Model
{
    protected $table      = 'c_forex';
    protected $primaryKey = 'forex_id';


    // Allowed fields for mass assignment
    protected $allowedFields = [
        'plan_id', 'start_date', 'end_date', 'country_code', 'duration', 'currency',
        'perdiem_amount', 'transport', 'accommodation', 'telephone', 'have_card',
        'card_number', 'deposit_on_card', 'deposit_on_cash', 'delivery_location',
        'comments', 'created_by', 'updated_by', 'is_active'
    ];

    protected $useTimestamps = false; // Manual timestamps as per the table design
    protected $createdField  = 'created_on';
    protected $updatedField  = 'updated_on';

    
}
