| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?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->collation = 'utf8mb4_general_ci';
- $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()
- {
- //
- }
- };
|