uuid('id')->primary(); $table->string('permission'); $table->uuid('user_id'); $table->timestamps(); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('permissions'); } };