HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot//www.shooperm.com/database/migrations/2021_01_24_131808_create_orders_table.php
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateOrdersTable extends Migration
{

    public function up()
    {
        Schema::create('orders', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('customer_id')->nullable();
            $table->unsignedBigInteger('order_payment_id')->nullable();
            $table->string('order_type')->nullable();
            $table->string('order_number')->unique();
            $table->unsignedBigInteger('payment_type');
            $table->unsignedInteger('is_paid')->default(0);
            $table->unsignedInteger('is_confirmed')->default(0);
            $table->unsignedInteger('is_completed')->default(0);
            $table->unsignedInteger('is_cancelled')->default(0);
            $table->unsignedInteger('cancel_reason_id')->nullable();
            $table->string('customer_email')->nullable();
            $table->string('customer_phone')->nullable();
            $table->unsignedBigInteger('customer_shipping_address')->nullable();
            $table->unsignedBigInteger('customer_billing_address')->nullable();
            $table->unsignedInteger('number_of_package')->nullable();
            $table->double('grand_total')->nullable();
            $table->double('sub_total')->nullable();
            $table->double('discount_total')->nullable();
            $table->double('shipping_total')->nullable();
            $table->unsignedInteger('number_of_item')->nullable();
            $table->unsignedInteger('order_status')->nullable();
            $table->double('tax_amount')->default(0)->nullable();
            $table->timestamps();
        });
    }


    public function down()
    {
        Schema::dropIfExists('orders');
    }
}