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

39 lines
914 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('guides', function (Blueprint $table) {
$table->id();
$table->integer('user_id')->unsigned();
$table->integer('order_id')->unsigned();
$table->date('phase_date');
$table->string("phase_title");
$table->text('menu');
$table->text('hint')->nullable();
$table->enum('status', ['SCHEDULED', 'CANCELED', 'FINISHED']);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('guides');
}
};