2022_10_18_092015_create_block_items_table.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateBlockItemsTable.
  6. */
  7. class CreateBlockItemsTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('block_items', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->integer('m_id')->index('m_id')->default('0')->comment('m_id');
  19. $table->integer('coin_id')->index('coin_id')->default('0')->comment('coin_id');
  20. $table->integer('block_num')->default('0')->comment('block_num');
  21. $table->double('money',12,6)->default('0')->comment('余额');
  22. $table->string('from_a')->default('')->comment('from_a');
  23. $table->string('hash')->default('')->comment('hash');
  24. $table->string('to_a')->default('')->comment('to_a');
  25. $table->string('to_type')->default('')->comment('to_type');
  26. $table->string('fee_limit')->default('')->comment('fee_limit');
  27. $table->string('coin_name')->default('')->comment('coin_name');
  28. $table->timestamp('pay_at',0)->nullable();
  29. $table->timestamps();
  30. });
  31. }
  32. /**
  33. * Reverse the migrations.
  34. *
  35. * @return void
  36. */
  37. public function down()
  38. {
  39. Schema::drop('block_items');
  40. }
  41. }