unsignedInteger('id', true); $table->integer('company_id')->default(0)->unsigned()->comment('公司ID'); $table->json('module_code')->comment('公司功能模块CODE列表'); $table->json('module_data_permissions')->comment('数据权限'); MigrateService::migrateCreateInfo($table); $table->comment('公司功能模块管理表'); $table->index(['company_id'], 'idx_company_id'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('company_modules'); } }