Created casino-related migrations for users, wallets, transactions, games, promos, audits, stats
This commit is contained in:
26
database/migrations/2025_09_06_093949_create_games_table.php
Normal file
26
database/migrations/2025_09_06_093949_create_games_table.php
Normal 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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user