id()->autoIncrement(); $table->string('vm_name',255)->nullable(); $table->unsignedBigInteger('module_network_id')->nullable(); $table->string('ip',100)->nullable(); $table->string('gateway',100)->nullable(); $table->string('netmask',100)->nullable(); $table->string('dns',100)->nullable(); $table->tinyInteger('status')->default(0)->comment('1: assign;0: free'); $table->timestamps(); $table->foreign('module_network_id', 'fk_module_ip_network') ->references('id') ->on('module_network') ->nullOnDelete(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('module_ip_address'); } };