38 lines
1.2 KiB
PHP
38 lines
1.2 KiB
PHP
<?php
|
||
|
||
namespace Database\Seeders;
|
||
|
||
use Illuminate\Database\Seeder;
|
||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||
|
||
final class DatabaseSeeder extends Seeder
|
||
{
|
||
use WithoutModelEvents;
|
||
|
||
public function run(): void
|
||
{
|
||
// 全环境可用的基础枚举数据
|
||
$this->call([
|
||
CurrencySeeder::class,
|
||
PlayTypeSeeder::class,
|
||
OperationalConfigV1Seeder::class,
|
||
OddsPrizeScopesBackfillSeeder::class,
|
||
/** 对齐玩法目录与 active/draft 配置行(修复历史子集种子) */
|
||
PlayOperationalAlignmentSeeder::class,
|
||
LotterySettingsSeeder::class,
|
||
]);
|
||
|
||
// 演示管理员 + 演示玩家 + 演示期号:**勿在生产库执行**(或确保 APP_ENV≠production)
|
||
if (! app()->environment('production')) {
|
||
$this->call([
|
||
AdminRbacAndUserSeeder::class,
|
||
DevPlayerAndWalletSeeder::class,
|
||
DrawDemoSeeder::class,
|
||
// 仪表盘:对齐「大厅 resolve 当期」+ 多场景演示期(-996 settled / -995 pending)
|
||
DashboardHallFixtureSeeder::class,
|
||
DashboardSecondaryScenariosSeeder::class,
|
||
]);
|
||
}
|
||
}
|
||
}
|