id(); $table->string('license_key'); $table->unsignedBigInteger('user_id')->nullable(); $table->string('license_provider'); $table->string('status'); $table->json('meta'); $table->timestamps(); $table->index(['license_key', 'license_provider']); $table->index(['user_id', 'license_provider']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('licenses'); } };