2018_05_24_113657_create_payment_callback_table.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreatePaymentCallbackTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('payment_callback', function (Blueprint $table) {
  15. $table->engine = 'InnoDB';
  16. $table->charset = 'utf8mb4';
  17. $table->collation = 'utf8mb4_unicode_ci';
  18. $table->increments('id');
  19. $table->string('client_id', 50)->nullable();
  20. $table->string('yz_id', 50)->nullable();
  21. $table->string('kdt_id', 50)->nullable();
  22. $table->string('kdt_name', 50)->nullable();
  23. $table->tinyInteger('mode')->nullable();
  24. $table->text('msg')->nullable();
  25. $table->integer('sendCount')->default('0');
  26. $table->string('sign', 32)->default('1');
  27. $table->string('status', 30)->default('0');
  28. $table->tinyInteger('test')->default('0');
  29. $table->string('type', 50)->default('');
  30. $table->string('version', 50)->nullable();
  31. $table->dateTime('created_at')->nullable();
  32. $table->dateTime('updated_at')->nullable();
  33. });
  34. }
  35. /**
  36. * Reverse the migrations.
  37. *
  38. * @return void
  39. */
  40. public function down()
  41. {
  42. Schema::dropIfExists('payment_callback');
  43. }
  44. }