/home/awneajlw/.trash/database.1/migrations/2024_08_15_150839_create_inventories_table.php
<?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('inventories', function (Blueprint $table) {

            $table->id();
            $table->string('name')->nullable();
            $table->text('description')->nullable();
            $table->string('quantity')->nullable();
            $table->string('price')->nullable();
            $table->string('karat')->nullable();
            $table->string('branch_id')->nullable();
            $table->string('category_id')->nullable();

            $table->timestamps();
        });
    }

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