2025_12_09_095546_create__pc_prediction.php 1006 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('pc_prediction', function (Blueprint $table) {
  15. $table->id();
  16. $table->string('issue_no', 50)->unique()->comment('期号');
  17. $table->tinyInteger('size')->comment('预测大小:0小,1大');
  18. $table->tinyInteger('odd_or_even')->comment('预测单双:0单,1双');
  19. $table->tinyInteger('is_valid')->nullable()->comment("结果:0错误,1正确");
  20. $table->string('winning_numbers')->nullable()->comment('开奖号码');
  21. $table->timestamps();
  22. });
  23. }
  24. /**
  25. * Reverse the migrations.
  26. *
  27. * @return void
  28. */
  29. public function down()
  30. {
  31. Schema::dropIfExists('_pc_prediction');
  32. }
  33. };