uuid('id')->primary(); $table->string('name'); // Foreign key for user $table->uuid('bucket_id'); $table->boolean('can_bucket_delete')->default(false); $table->boolean('can_bucket_edit')->default(false); $table->boolean('can_user_add')->default(false); $table->boolean('can_user_remove')->default(false); $table->boolean('can_user_edit')->default(false); $table->boolean('can_file_delete')->default(false); $table->boolean('can_file_upload')->default(false); $table->boolean('can_file_download')->default(false); $table->boolean('can_file_edit')->default(false); $table->foreign('bucket_id')->references('id')->on('buckets'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('roles'); } }