id(); $table->string('name')->required(); $table->string('description')->nullable(); $table->string('color_id')->required(); $table->string('manufacturer_id')->required(); $table->string('type_id')->required(); $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'); } };