id(); $table->unsignedBiginteger('category_id')->unsigned(); $table->string('uuid'); $table->string('name'); $table->string('url'); $table->string('description'); $table->decimal('price', 8, 2); $table->string('image')->nullable(); $table->foreign('category_id')->references('id') ->on('categories')->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('items'); } };