id(); $table->string('name')->required(); $table->string('description')->nullable(); $table->foreignId('color_id')->constrained(); $table->foreignId('manufacturer_id')->constrained(); $table->foreignId('filament_type_id')->constrained(); $table->string('weight')->required(); $table->string('diameter')->required(); $table->string('price')->nullable(); $table->string('finish')->nullable(); $table->string('image')->nullable(); $table->integer('stock')->default(0); $table->integer('temp_min')->nullable(); $table->integer('temp_max')->nullable(); $table->integer('buildplate_id')->nullable(); $table->integer('extruder_id')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('filaments'); } };