id(); $table->bigInteger('status_id')->unsigned()->index()->nullable(); $table->bigInteger('media_id')->unsigned()->index(); $table->bigInteger('profile_id')->unsigned()->index(); $table->string('tagged_username')->nullable(); $table->boolean('is_public')->default(true)->index(); $table->json('metadata')->nullable(); $table->unique(['media_id', 'profile_id']); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('media_tags'); } }