<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAdmin extends Migration { public function up() { goto HG9g7; L3Jzs: Schema::create('admin_log', function (Blueprint $AD05J) { $AD05J->increments('id'); $AD05J->timestamps(); $AD05J->integer('adminUserId')->nullable()->comment('用户ID'); $AD05J->tinyInteger('type')->nullable()->comment('类型'); $AD05J->string('summary', 400)->nullable()->comment('摘要'); }); goto JWpTV; oTxM_: Schema::connection($jw60N)->create('admin_user', function (Blueprint $AD05J) { $AD05J->increments('id'); $AD05J->timestamps(); $AD05J->string('username', 100)->comment('')->nullable(); $AD05J->char('password', 32)->comment('')->nullable(); $AD05J->char('passwordSalt', 16)->comment('')->nullable(); $AD05J->boolean('ruleChanged')->comment('')->nullable(); $AD05J->timestamp('lastLoginTime')->comment('')->nullable(); $AD05J->string('lastLoginIp', 20)->comment('')->nullable(); $AD05J->timestamp('lastChangePwdTime')->comment('')->nullable(); $AD05J->unique('username'); }); goto wHo0i; E1c0O: Schema::connection($jw60N)->create('admin_role', function (Blueprint $AD05J) { $AD05J->increments('id'); $AD05J->timestamps(); $AD05J->string('name', 200)->comment('')->nullable(); }); goto cSqzI; JWpTV: Schema::create('admin_log_data', function (Blueprint $AD05J) { $AD05J->increments('id'); $AD05J->timestamps(); $AD05J->text('content')->nullable()->comment('内容'); }); goto Jqssj; HG9g7: $jw60N = config('modstart.admin.database.connection') ?: config('database.default'); goto E1c0O; cSqzI: Schema::connection($jw60N)->create('admin_role_rule', function (Blueprint $AD05J) { $AD05J->increments('id'); $AD05J->timestamps(); $AD05J->unsignedInteger('roleId')->comment('')->nullable(); $AD05J->string('rule', 200)->comment('')->nullable(); $AD05J->index('roleId'); }); goto oTxM_; wHo0i: Schema::connection($jw60N)->create('admin_user_role', function (Blueprint $AD05J) { $AD05J->increments('id'); $AD05J->timestamps(); $AD05J->unsignedInteger('userId')->nullable(); $AD05J->unsignedInteger('roleId')->nullable(); $AD05J->index('userId'); $AD05J->index('roleId'); }); goto L3Jzs; Jqssj: } public function down() { } }