2022_10_24_160342_create_grant_ponds_table.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateGrantPondsTable.
  6. */
  7. class CreateGrantPondsTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('grant_ponds', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->double('grand_total',16,6)->default(0)->comment('累计LK数量');
  19. $table->double('average_money',16,6)->default(0)->comment('平均数量');
  20. $table->integer('status')->default(1)->comment('1:累计中,2:待分发,3:已完成');
  21. $table->integer('total_num')->default(1)->comment('平均总人数');
  22. $table->string('pond_sn')->default('')->comment('分发编号');
  23. $table->timestamp('distribute_date')->comment('分发时间');
  24. $table->timestamp('end_date')->comment('累计结束时间');
  25. $table->timestamps();
  26. });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. *
  31. * @return void
  32. */
  33. public function down()
  34. {
  35. Schema::drop('grant_ponds');
  36. }
  37. }