<?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('middleware_content', function (Blueprint $table) {
            $table->increments('id');
            $table->string('type')->nullable();
            $table->string('method')->nullable();
            $table->text('body')->nullable();
            $table->text('response')->nullable();
            $table->integer('company_id')->nullable();
            $table->integer('brand_id')->nullable();
            $table->integer('user_id')->nullable();
            $table->integer('status')->default(1);
            $table->timestamps();
        });
    }

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