2026_01_27_161963_update_backflow.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::dropIfExists('backflow');
  15. // Schema::create('backflow', function (Blueprint $table) {
  16. // $table->engine = 'InnoDB';
  17. // $table->id();
  18. // $table->string('date', 32)->comment('日期');
  19. // $table->string('member_id', 32)->comment('会员id');
  20. // $table->decimal('recharge_amount', 10, 2)->default(0)->comment('充值金额');
  21. // $table->decimal('withdrawal_amount', 10, 2)->default(0)->comment('提现金额');
  22. // $table->decimal('backflow_ratio', 10, 2)->nullable()->comment('回水比例');
  23. // $table->decimal('amount', 10, 2)->default(0)->comment('回水金额');
  24. // $table->tinyInteger('status')->default(0)->comment('0未回水,1已回水');
  25. // $table->timestamps();
  26. // });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. *
  31. * @return void
  32. */
  33. public function down()
  34. {
  35. //
  36. }
  37. };