<?php

namespace App\Models;

use CodeIgniter\Model;

class OrderModel extends Model
{
    protected $table            = 'orders';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType      = 'object';
    protected $useSoftDeletes   = false;
    protected $allowedFields   = [
        'user_id', 'driver_id', 'service_id', 'location_id', 'order_type', 'order_meta', 'rescue_service_id',
        'total_amount', 'points_used', 'otp_code', 'status',
        'created_at', 'updated_at',
    ];
    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
}
