2025_11_10_133313_create_cao_history.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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('cao_history', function (Blueprint $table) {
  15. $table->id();
  16. $table->string('date')->unique()->comment('日期');
  17. $table->integer('total')->default(0)->comment('总期数');
  18. $table->integer('big')->default(0)->comment('大');
  19. $table->integer('small')->default(0)->comment('小');
  20. $table->integer('odd')->default(0)->comment('奇数');
  21. $table->integer('even')->default(0)->comment('偶数');
  22. $table->integer('big_odd')->default(0)->comment('大单');
  23. $table->integer('big_even')->default(0)->comment('大双');
  24. $table->integer('small_odd')->default(0)->comment('小单');
  25. $table->integer('small_even')->default(0)->comment('小双');
  26. $table->integer('max')->default(0)->comment('极大');
  27. $table->integer('min')->default(0)->comment('极小');
  28. $table->integer('pair')->default(0)->comment('对子');
  29. $table->integer('sequence')->default(0)->comment('顺子');
  30. $table->integer('leopard')->default(0)->comment('豹子');
  31. $table->integer('num_0')->default(0)->comment("00号");
  32. $table->timestamps();
  33. });
  34. }
  35. /**
  36. * Reverse the migrations.
  37. *
  38. * @return void
  39. */
  40. public function down()
  41. {
  42. Schema::dropIfExists('cao_history');
  43. }
  44. };