2025_11_07_140042_create_prediction.php 999 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class extends Migration {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. Schema::create('prediction', function (Blueprint $table) {
  14. $table->id();
  15. $table->string('issue_no', 50)->unique()->comment('期号');
  16. $table->tinyInteger('size')->comment('预测大小:0小,1大');
  17. $table->tinyInteger('odd_or_even')->comment('预测单双:0单,1双');
  18. $table->tinyInteger('is_valid')->nullable()->comment("结果:0错误,1正确");
  19. $table->string('winning_numbers')->nullable()->comment('开奖号码');
  20. $table->timestamps();
  21. });
  22. }
  23. /**
  24. * Reverse the migrations.
  25. *
  26. * @return void
  27. */
  28. public function down()
  29. {
  30. Schema::dropIfExists('prediction');
  31. }
  32. };