| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | 
							- <?php
 
- use Illuminate\Support\Facades\Schema;
 
- use Illuminate\Database\Schema\Blueprint;
 
- use Illuminate\Database\Migrations\Migration;
 
- /**
 
-  * Migration auto-generated by Sequel Pro Laravel Export
 
-  * @see https://github.com/cviebrock/sequel-pro-laravel-export
 
-  */
 
- class CreateAdminAccessTable extends Migration
 
- {
 
-     /**
 
-      * Run the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function up()
 
-     {
 
-         Schema::create('admin_access', function (Blueprint $table) {
 
-             $table->increments('id');
 
-             $table->integer('role_id')->comment('角色的ID');
 
-             $table->integer('menu_id')->comment('菜单ID');
 
-             $table->timestamps();
 
-             $table->softDeletes();
 
-             $table->index('role_id', 'idx_access_role_id');
 
-             $table->index('deleted_at', 'idx_deleted_at');
 
-             
 
-         });
 
-     }
 
-     /**
 
-      * Reverse the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function down()
 
-     {
 
-         Schema::dropIfExists('admin_access');
 
-     }
 
- }
 
 
  |