id(); $table->string('name'); $table->string('description')->nullable(); $table->foreignId('color_id')->constrained('colors')->onUpdate('cascade')->onDelete('cascade'); $table->foreignId('manufacturer_id')->constrained('manufacturers')->onUpdate('cascade')->onDelete('cascade'); $table->foreignId('filament_type_id')->constrained('filament_types')->onUpdate('cascade')->onDelete('cascade'); $table->integer('weight'); $table->decimal('diameter', 10, 2); $table->decimal('price', 10, 2)->nullable(); $table->integer('temp_min')->nullable(); $table->integer('temp_max')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('filaments'); } };