26 lines
903 B
PHP
26 lines
903 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
Schema::create('games', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('name')->comment('Game name, e.g., Plinko');
|
|
$table->string('slug')->unique()->comment('URL-friendly slug');
|
|
$table->string('thumbnail_url')->nullable()->comment('Vibrant thumbnail for lobby');
|
|
$table->enum('category', ['slots', 'plinko', 'wheel', 'cards', 'other'])->default('other')->comment('For filtering');
|
|
$table->boolean('is_active')->default(true)->comment('Toggle for maintenance');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('games');
|
|
}
|
|
}; |