diff --git a/app/HashtagFollow.php b/app/HashtagFollow.php new file mode 100644 index 000000000..5258520d6 --- /dev/null +++ b/app/HashtagFollow.php @@ -0,0 +1,10 @@ +bigIncrements('id'); + $table->bigInteger('user_id')->unsigned()->index(); + $table->bigInteger('profile_id')->unsigned()->index(); + $table->bigInteger('hashtag_id')->unsigned()->index(); + $table->unique(['user_id', 'profile_id', 'hashtag_id']); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('hashtag_follows'); + } +}