38 lines
1.1 KiB
PHP
38 lines
1.1 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', 'closed'])->default('open');
|
|
$table->unsignedTinyInteger('type')->default(0);
|
|
$table->unsignedTinyInteger('rune')->default(0);
|
|
$table->unsignedTinyInteger('color')->default(0);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('wishes');
|
|
}
|
|
};
|