|
|
@@ -0,0 +1,40 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+use Illuminate\Database\Migrations\Migration;
|
|
|
+use Illuminate\Database\Schema\Blueprint;
|
|
|
+use Illuminate\Support\Facades\Schema;
|
|
|
+
|
|
|
+return new class extends Migration
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * Run the migrations.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function up()
|
|
|
+ {
|
|
|
+ Schema::dropIfExists('backflow');
|
|
|
+// Schema::create('backflow', function (Blueprint $table) {
|
|
|
+// $table->engine = 'InnoDB';
|
|
|
+// $table->id();
|
|
|
+// $table->string('date', 32)->comment('日期');
|
|
|
+// $table->string('member_id', 32)->comment('会员id');
|
|
|
+// $table->decimal('recharge_amount', 10, 2)->default(0)->comment('充值金额');
|
|
|
+// $table->decimal('withdrawal_amount', 10, 2)->default(0)->comment('提现金额');
|
|
|
+// $table->decimal('backflow_ratio', 10, 2)->nullable()->comment('回水比例');
|
|
|
+// $table->decimal('amount', 10, 2)->default(0)->comment('回水金额');
|
|
|
+// $table->tinyInteger('status')->default(0)->comment('0未回水,1已回水');
|
|
|
+// $table->timestamps();
|
|
|
+// });
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Reverse the migrations.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function down()
|
|
|
+ {
|
|
|
+ //
|
|
|
+ }
|
|
|
+};
|