<?php

namespace App\Models;

use CodeIgniter\Model;

class VehicleModel extends Model
{
    protected $table            = 'vehicle';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;

    // return arrays (change to 'object' if you prefer objects)
    protected $returnType       = 'array';

    protected $allowedFields    = [
        'vehicle_no',
        'type',
        'description',
        'owner',
        'branch_id',
        'old_onwer',
        'rc',
        'is_active',
        'created_by',
        'created_on',
        'updated_by',
        'updated_on'
    ];

    // timestamps are handled by DB defaults, so keep false
    protected $useTimestamps = false;
}
