Files
wishboard/database/migrations/2026_09_10_071718_create_wishes_table.php
Belupeti 7f30d10e1d
Build / Build-image (push) Failing after 6s
add new assets and refactor public folder
2026-09-24 13:04:40 +02:00

39 lines
1.2 KiB
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('id')->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', ['open', 'promised', 'disabled', 'granted'])->default('open');
$table->unsignedTinyInteger('type')->default(0);
$table->unsignedTinyInteger('icon_type')->default(0);
$table->unsignedTinyInteger('icon_rune')->default(0);
$table->unsignedTinyInteger('color')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('wishes');
}
};