id(); $table->string('vm_name')->nullable(); $table->foreignId('module_network_id') ->nullable() ->constrained('module_network') ->nullOnDelete(); $table->foreignId('module_host_id') ->nullable() ->constrained('module_host') ->nullOnDelete(); $table->string('ip')->nullable(); $table->string('gateway')->nullable(); $table->string('netmask')->nullable(); $table->string('dns')->nullable(); $table->tinyInteger('status') ->default(0) ->comment('1: assign; 0: free'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('module_ip_address'); } };