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

37 lines
881 B
PHP

<?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('coaches', function (Blueprint $table) {
$table->id();
$table->integer("partner_id")->unsigned();
$table->string('openid', 50)->unique();
$table->text("outlook")->comment("看法")->nullable();
$table->text("reason")->comment("原因")->nullable();
$table->text("think")->comment("认为")->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('coaches');
}
};