2022_10_24_151413_create_contract_distributions_table.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateContractDistributionsTable.
  6. */
  7. class CreateContractDistributionsTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('contract_distributions', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->integer('contract_id')->index('contract_id')->comment('合约ID');
  19. $table->integer('m_id')->index('m_id')->comment('会员ID');
  20. $table->integer('broadcast_id')->comment('广播ID');
  21. $table->integer('is_transition')->comment('是否转换为lk');
  22. $table->double('usdt_num',16,6)->default(0)->comment('清分USDT');
  23. $table->double('lk_num',16,6)->default(0)->comment('清分lk');
  24. $table->double('lk_money',16,6)->default(0)->comment('lk价格');
  25. $table->timestamps();
  26. });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. *
  31. * @return void
  32. */
  33. public function down()
  34. {
  35. Schema::drop('contract_distributions');
  36. }
  37. }