12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- /**
- * Class CreateGrantDistributionsTable.
- */
- class CreateGrantDistributionsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('grant_distributions', function(Blueprint $table) {
- $table->increments('id');
- $table->integer('m_id')->index('m_id')->comment('会员ID');
- $table->integer('pond_id')->index('pond_id')->comment('分发批次ID');
- $table->double('average_money',16,6)->default(0)->comment('平均LK数量');
- $table->integer('broadcast_id')->comment('广播ID');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('grant_distributions');
- }
- }
|