1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- /**
- * Class CreateBlockItemsTable.
- */
- class CreateBlockItemsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('block_items', function(Blueprint $table) {
- $table->increments('id');
- $table->integer('m_id')->index('m_id')->default('0')->comment('m_id');
- $table->integer('coin_id')->index('coin_id')->default('0')->comment('coin_id');
- $table->integer('block_num')->default('0')->comment('block_num');
- $table->double('money',12,6)->default('0')->comment('余额');
- $table->string('from_a')->default('')->comment('from_a');
- $table->string('hash')->default('')->comment('hash');
- $table->string('to_a')->default('')->comment('to_a');
- $table->string('to_type')->default('')->comment('to_type');
- $table->string('fee_limit')->default('')->comment('fee_limit');
- $table->string('coin_name')->default('')->comment('coin_name');
- $table->timestamp('pay_at',0)->nullable();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('block_items');
- }
- }
|