id(); // payment $table->string('payment')->index(); // amount $table->double('amount', 60, 8)->default(0); // 汇率 $table->integer('rate')->default(1); // 实际收入 $table->double('total', 60, 8)->default(0); $table->boolean('status')->default(0)->index(); $table->foreignIdFor(User::class)->index(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('drops'); } };