increments('id'); $table->unsignedInteger('device_id')->nullable()->comment('设备类型ID'); $table->string('name', 200)->nullable()->comment('设备名'); $table->integer('sort')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('device_names'); } }