优化更新
This commit is contained in:
@@ -64,11 +64,11 @@ return new class extends Migration
|
||||
// 权限表
|
||||
Schema::create('auth_permissions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name', 100)->unique()->comment('权限名称');
|
||||
$table->string('code', 100)->unique()->comment('权限编码');
|
||||
$table->string('type', 20)->default('api')->comment('类型:api 菜单 按钮');
|
||||
$table->string('title', 100)->comment('权限标题');
|
||||
$table->string('name', 100)->unique()->comment('权限编码');
|
||||
$table->string('type', 20)->default('menu')->comment('类型:api button menu url');
|
||||
$table->unsignedBigInteger('parent_id')->default(0)->comment('父级ID');
|
||||
$table->string('route')->nullable()->comment('路由');
|
||||
$table->string('path')->nullable()->comment('路由路径');
|
||||
$table->string('component')->nullable()->comment('前端组件路径');
|
||||
$table->json('meta')->nullable()->comment('元数据(隐藏菜单、面包屑等)');
|
||||
$table->integer('sort')->default(0)->comment('排序');
|
||||
@@ -79,6 +79,7 @@ return new class extends Migration
|
||||
$table->index('parent_id');
|
||||
$table->index('type');
|
||||
$table->index('status');
|
||||
$table->index('name');
|
||||
});
|
||||
|
||||
// 用户角色关联表
|
||||
|
||||
Reference in New Issue
Block a user