12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- /**
- * Class CreateBroadcastsTable.
- */
- class CreateBroadcastsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('broadcasts', function(Blueprint $table) {
- $table->increments('id');
- $table->string('from')->default('')->comment('from');
- $table->string('to')->default('')->comment('to');
- $table->string('nonce')->default('')->comment('nonce');
- $table->string('value')->default('')->comment('value');
- $table->string('data')->default('')->comment('data');
- $table->string('chain_id')->default('')->comment('chain_id');
- $table->string('gas_price')->default('')->comment('gas_price');
- $table->string('gas_limit')->default('')->comment('gas_limit');
- $table->string('sign')->default('')->comment('sign');
- $table->string('hash')->default('')->comment('hash');
- $table->string('from_key')->default('')->comment('from_key');
- $table->string('error')->default('')->comment('error');
- $table->string('contract_address')->default('')->comment('contract_address');
- $table->string('to_address')->default('')->comment('to_address');
- $table->text('success')->comment('success');
- $table->double('money',12,6)->default('0')->comment('余额');
- $table->integer('type')->default('0')->comment('type');
- $table->integer('status')->default('0')->comment('status');
- $table->integer('order_id')->default('0')->comment('order_id');
- $table->integer('coin_id')->default('0')->comment('coin_id');
- $table->integer('depend')->default('0')->comment('depend');
- $table->integer('m_id')->default('0')->comment('m_id');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('broadcasts');
- }
- }
|