increments('id'); $table->string('name',120)->comment('通道名称'); $table->string('ename',50)->comment('通道标识符'); $table->string('app_id')->comment('商户id'); $table->string('app_key')->nullable()->comment('商户密钥'); $table->string('mch_id')->nullable()->comment('商户账号'); $table->string('client_type')->default('pc')->comment('客户端类型'); $table->string('cert_pub',4000)->nullable()->comment('支付公钥'); $table->string('cert_key',4000)->nullable()->comment('应用私钥'); $table->tinyInteger('is_dev')->default(0)->comment('是否沙箱'); $table->tinyInteger('ratio')->default('6')->comment('费率,单位为1000'); $table->string('thumb',255)->nullable('支付通道图片'); $table->string('mthumb',255)->nullable('支付通道图片'); $table->smallInteger('sort')->default(0)->comment('排序'); $table->tinyInteger('is_checked')->default(1)->comment('通道状态1:启用,0:禁用'); $table->timestamps(); $table->index('ename'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('gateways'); } }