Files
wishboard/database/migrations/2026_09_10_071718_create_wishes_table.php

35 lines
932 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.
*/
public function up(): void
{
Schema::create('wishes', function (Blueprint $table) {
$table->uuid()->primary();
$table->string('title');
$table->text('description');
$table->string('reward')->nullable();
$table->string('agent_id')->nullable();
$table->string('owner_id')->nullable();
$table->foreignUuid('guest_id')->nullable();
$table->enum('status', ['posted', 'taken', 'disabled', 'completed'])->default('posted');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('wishes');
}
};