2018_07_11_030244_create_payment_info_table.php 971 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreatePaymentInfoTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('payment_info', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->integer('site_id')->nullable()->comment('站点ID');
  17. $table->integer('user_id')->comment('用户ID');
  18. $table->integer('openid')->comment('用户openid');
  19. $table->string('out_trade_no')->comment('支付订单');
  20. $table->double('price')->comment('支付金额');
  21. $table->softDeletes();
  22. $table->timestamps();
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. *
  28. * @return void
  29. */
  30. public function down()
  31. {
  32. Schema::dropIfExists('payment_info');
  33. }
  34. }