diff --git a/app/CircleProfile.php b/app/CircleProfile.php new file mode 100644 index 000000000..bc99d08a4 --- /dev/null +++ b/app/CircleProfile.php @@ -0,0 +1,13 @@ +bigIncrements('id'); + $table->bigInteger('owner_id')->unsigned()->nullable()->index(); + $table->bigInteger('circle_id')->unsigned()->index(); + $table->bigInteger('profile_id')->unsigned()->index(); + $table->unique(['circle_id', 'profile_id']); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('circle_profiles'); + } +}