12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- /**
- * Class CreateGrantPondsTable.
- */
- class CreateGrantPondsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('grant_ponds', function(Blueprint $table) {
- $table->increments('id');
- $table->double('grand_total',16,6)->default(0)->comment('累计LK数量');
- $table->double('average_money',16,6)->default(0)->comment('平均数量');
- $table->integer('status')->default(1)->comment('1:累计中,2:待分发,3:已完成');
- $table->integer('total_num')->default(1)->comment('平均总人数');
- $table->string('pond_sn')->default('')->comment('分发编号');
- $table->timestamp('distribute_date')->comment('分发时间');
- $table->timestamp('end_date')->comment('累计结束时间');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('grant_ponds');
- }
- }
|