2022_10_18_091958_create_member_coins_table.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateMemberCoinsTable.
  6. */
  7. class CreateMemberCoinsTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('member_coins', 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->string('coin_name')->default('')->comment('币名');
  21. $table->double('num',12,6)->default('0')->comment('余额');
  22. $table->double('lock_num',12,6)->default('0')->comment('锁定数量');
  23. $table->string('address')->default('')->comment('address');
  24. $table->string('private')->default('')->comment('');
  25. $table->string('code_img')->default('')->comment('');
  26. $table->timestamps();
  27. });
  28. }
  29. /**
  30. * Reverse the migrations.
  31. *
  32. * @return void
  33. */
  34. public function down()
  35. {
  36. Schema::drop('member_coins');
  37. }
  38. }