Files
bratanbonus/database/migrations/2025_10_27_000000_create_bonuses_table.php
T
Dolo 79bea8cf56
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled
Neuaufbau des Repositories
2026-04-10 21:14:11 +02:00

38 lines
1.3 KiB
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('bonuses', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->text('description')->nullable();
$table->string('image_path')->nullable();
$table->string('brand_color')->default('#ffffff');
$table->string('hover_color')->default('rgba(255, 255, 255, 0.1)');
$table->json('badges')->nullable();
$table->string('min_deposit')->nullable();
$table->string('max_bet')->nullable();
$table->string('wagering')->nullable();
$table->string('free_spins')->nullable();
$table->string('button_link')->nullable();
$table->json('key_features')->nullable();
$table->boolean('is_sticky')->default(false);
$table->boolean('is_no_deposit')->default(false);
$table->integer('order')->default(0);
$table->boolean('is_active')->default(true);
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('bonuses');
}
};