Skip to content

Commit

Permalink
Add role assignments foreign keys to db
Browse files Browse the repository at this point in the history
  • Loading branch information
djfurman committed Jan 21, 2018
1 parent 441852e commit 77208c9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ public function up()
{
Schema::create('party_assignments', function (Blueprint $table) {
$table->uuid('party_uuid');
$table->foreign('party_uuid')->references('uuid')->on('parties');
$table->uuid('agreement_uuid');
$table->foreign('agreement_uuid')->references('uuid')->on('agreements');
$table->uuid('role_uuid');
$table->foreign('role_uuid')->references('uuid')->on('roles');
$table->unique(['role_uuid', 'agreement_uuid']);
$table->timestamps();
});
Expand Down

0 comments on commit 77208c9

Please sign in to comment.