<?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_mappings', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('brand_id')->nullable();
            $table->integer('foodics_id')->nullable();
            $table->integer('chefadmin_id')->nullable();
            $table->string('type_foodics')->nullable();
            $table->string('type_chefadmin')->nullable();
            $table->integer('process_id')->nullable();
            $table->longText('submission_payload')->nullable();
            $table->longText('response_payload')->nullable();
            $table->integer('status')->default(1);
            $table->timestamps();
        });
    }

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