id(); $table->timestamps(); $table->string('name'); $table->integer('port')->nullable(); $table->boolean('active'); }); Schema::create('software', function (Blueprint $table) { $table->id(); $table->timestamps(); $table->string('name'); $table->boolean('active'); $table->integer('code')->nullable(); // Mailer/Tosser Product Code $table->integer('type'); // Mailer/Tosser $table->unique(['code','type']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('protocols'); Schema::dropIfExists('software'); } }