2018_07_22_105854_create_setting_info_table.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateSettingInfoTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('setting_info', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->string('app_id')->nullable()->comment('小程序appid');
  17. $table->string('app_secret')->nullable()->comment('小程序secret');
  18. $table->string('mch_id')->nullable()->comment('支付商户号');
  19. $table->string('api_key')->nullable()->comment('支付密钥');
  20. $table->string('cert_path')->nullable()->comment('支付cart路径');
  21. $table->string('key_path')->nullable()->comment('支付key路径');
  22. $table->string('free_refund_time')->nullable()->comment('免手续费退款时间,小时');
  23. $table->string('refund_poundage_in')->nullable()->comment('未到期退款手续费,百分比');
  24. $table->string('refund_poundage_out')->nullable()->comment('到期退款手续费,百分比');
  25. $table->timestamps();
  26. });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. *
  31. * @return void
  32. */
  33. public function down()
  34. {
  35. Schema::dropIfExists('setting_info');
  36. }
  37. }