increments('id'); $table->smallInteger('sort')->default(0)->comment('排序'); $table->smallInteger('next_ratio')->default(0)->comment('上级结算佣金,如果为空,则没有上级佣金'); $table->string('origin_password')->nullable()->comment('原始密码'); $table->string('password')->nullable()->comment('密码'); $table->string('name',120)->comment('接口商名字'); $table->string('ip',120)->nullable()->comment('ip'); $table->string('host',120)->nullable()->comment('域名'); $table->string('app_key',120)->nullable()->comment('密钥'); $table->string('token',120)->nullable()->comment('token'); $table->tinyInteger('draw_type')->default(1)->comment('提现到账类型,1=T+0,2=T+1,3...'); $table->integer('min_money')->default(0)->comment('最低提款金额'); $table->string('realname',30)->nullable()->comment('真实姓名'); $table->string('idcard',120)->nullable()->comment('身份证号码'); $table->string('address')->nullable()->comment('地址'); $table->string('email',100)->nullable()->comment('邮箱'); $table->string('mobile',11)->nullable()->comment('手机'); $table->smallInteger('ratio')->comment('总费率')->default(10); $table->string('qq',50)->nullable()->comment('qq'); $table->tinyInteger('is_proxy')->default(0)->comment('是否代理1:是,0:否'); $table->integer('from_id')->default(0)->comment('上级id'); $table->tinyInteger('is_checked')->default(1)->comment('状态1:启用,0:禁用'); $table->tinyInteger('login_status')->default(1)->comment('登陆状态:1启用,0禁用'); $table->integer('last_number')->default(0)->comment('登陆次数'); $table->string('login_ip', 60)->default('127.0.0.1')->comment('登陆IP'); $table->dateTime('last_time')->nullable()->comment('最后登陆时间'); $table->string('remember_token',120)->nullable()->comment('记录登陆'); $table->tinyInteger('check_status')->default(1)->comment('申请审核'); $table->dateTime('check_at')->nullable()->comment('审核通过时间'); $table->index('app_key'); $table->index('token'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('merchants'); } }