<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('foodics_list_orders', function (Blueprint $table) {
            $table->id();
            $table->integer('token_id');
            $table->string('order_id');
            $table->string('order_status');
            $table->text('list_order_payload');
            $table->text('get_order_payload')->nullable();
            $table->text('extract_order_payload')->nullable();
            $table->integer('status')->default(1);
            $table->timestamps();
        });
    }

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