Created casino-related migrations for users, wallets, transactions, games, promos, audits, stats

This commit is contained in:
2025-09-06 11:41:58 +02:00
parent 5a49d3c09a
commit 9a4800f6c2
8 changed files with 215 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?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');
}
};