2022_10_24_160425_create_grant_distributions_table.php 874 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateGrantDistributionsTable.
  6. */
  7. class CreateGrantDistributionsTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('grant_distributions', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->integer('m_id')->index('m_id')->comment('会员ID');
  19. $table->integer('pond_id')->index('pond_id')->comment('分发批次ID');
  20. $table->double('average_money',16,6)->default(0)->comment('平均LK数量');
  21. $table->integer('broadcast_id')->comment('广播ID');
  22. $table->timestamps();
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. *
  28. * @return void
  29. */
  30. public function down()
  31. {
  32. Schema::drop('grant_distributions');
  33. }
  34. }