123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- /**
- * Class CreateGrantItemsTable.
- */
- class CreateGrantItemsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('grant_items', function(Blueprint $table) {
- $table->increments('id');
- $table->integer('m_id')->index('m_id')->comment('会员ID');
- $table->integer('contract_id')->index('contract_id')->comment('合约ID');
- $table->double('add_money',16,6)->default(0)->comment('分配数量');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('grant_items');
- }
- }
|