bigIncrements('id'); $table->string('primary_key'); $table->string('secondary_key')->nullable(); $table->unsignedBigInteger('score'); $table->json('list')->nullable(); $table->timestamp('expired_at')->nullable(); $table->timestamps(); $table->unique(['primary_key', 'secondary_key']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('visits'); } }