<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
//        Schema::create('orders_old', function (Blueprint $table) {
//            $table->bigIncrements('id');
//            $table->integer('user_id');
//            $table->integer('address_id')->nullable();
//
//            $table->integer('price_product')->default(0);
//            $table->integer('price_delivery')->nullable();
//            //            $table->integer('price_product')->nullable();
//            $table->integer('discount')->nullable();
//            $table->boolean('archived')->default(false);
//            $table->timestamp('shipment_date')->nullable();
//            $table->enum('type', ['default', 'one_click'])->default('default');
//            $table->enum('type_delivery', ['delivery', 'pickup'])->default('delivery');
//            $table->jsonb('currency');
//            $table->unsignedBigInteger('branch_id')->nullable();
//            $table->jsonb('apelsin_data')->nullable();
//            $table->enum('status', ['processing', 'collected', 'waiting_buyer', 'in_way', 'closed', 'cancelled', 'replacement', 'completed'])->default('processing');
//
//            $table->enum('payment_type', ['cash', 'payme', 'apelsin', 'click', 'uzcard', 'oson', 'credit', 'upay', 'paynet'])->default('cash');
//            $table->enum('payment_status', ['waiting', 'cancelled', 'payed', 'cash', 'review'])->default('waiting');
//
//            $table->text('comment')->nullable();
//
//            $table->timestamps();
//        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
//        Schema::dropIfExists('orders_old');
    }
};
