<?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('uis', function (Blueprint $table) {
            $table->id('ui_id');
            $table->string('ui_name')->nullable();
            $table->string('ui_nameAR')->nullable();
            $table->string('ui_nameEN')->nullable();
            $table->longText('ui_descreptionAR')->nullable();
            $table->longText('ui_descreptionEN')->nullable();
            $table->string('ui_image')->nullable();
            $table->longText('ui_content')->nullable();
            $table->string('ui_type')->nullable();
            $table->integer('ui_state')->default(1);
            $table->timestamps();
        });
    }

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