ufutx.dma/database/migrations/2023_12_14_111433_create_lotteries_table.php
2026-03-04 14:42:40 +08:00

37 lines
970 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('lotteries', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable()->comment('标题');
$table->boolean("repeat")->default(0)->comment("是否重复中奖01");
$table->string('qrcode')->nullable()->comment("二维码");
$table->string('path')->nullable()->comment("链接");
$table->string('apply_qrcode')->nullable()->comment("报名二维码");
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('lotteries');
}
};