id(); $table->string('slug')->unique(); $table->string('name'); $table->text('description')->nullable(); $table->string('module'); $table->string('entity')->nullable(); $table->string('field')->nullable(); $table->string('action'); $table->string('type')->default('action'); $table->string('group')->nullable(); $table->unsignedInteger('sort')->default(100); $table->boolean('is_system')->default(true); $table->timestamps(); $table->index(['module', 'type']); $table->index(['module', 'field']); }); } public function down(): void { Schema::dropIfExists('permissions'); } };