id(); $table->string('name')->index()->nullable(); $table->string('code')->index()->nullable()->comment('机器编码'); $table->integer('station_type_id')->index(); $table->integer('sequence')->index()->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('stations'); } }