2018_10_10_111333_create_payments_table.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreatePaymentsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('payments', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->string('name')->comment('名称');
  17. $table->string('alias')->comment('别名');
  18. $table->string('s_intro')->comment('简单描述');
  19. $table->string('introd')->comment('详细描述');
  20. $table->string('partnerid')->comment('合作者身份(Partner ID)')->nullable();
  21. $table->string('ytauthkey')->comment('安全校验码(Key)')->nullable();
  22. $table->string('account')->comment('账号')->nullable();
  23. $table->tinyInteger('type')->default('1')->comment('类型(1:支付宝 2:微信 3: 线下转账)');
  24. $table->timestamps();
  25. $table->softDeletes();
  26. });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. *
  31. * @return void
  32. */
  33. public function down()
  34. {
  35. Schema::dropIfExists('payments');
  36. }
  37. }