finish off for today
This commit is contained in:
@@ -4,28 +4,46 @@ namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use App\Models\User;
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
// Seed admin user
|
||||
// Seed admin user (for first-time admin)
|
||||
User::create([
|
||||
'name' => 'Admin',
|
||||
'email' => 'admin@skunklounge.com',
|
||||
'password' => Hash::make('securepass123'),
|
||||
'role' => 'admin',
|
||||
'balance' => 1000.00,
|
||||
'account_status' => 'active',
|
||||
'kyc_status' => 'verified',
|
||||
]);
|
||||
|
||||
// Other seeds (e.g., site settings, promos) as before
|
||||
\DB::table('site_settings')->insert([
|
||||
// Seed site settings
|
||||
DB::table('site_settings')->insert([
|
||||
['key' => 'currency_symbol', 'value' => '$'],
|
||||
['key' => 'default_balance', 'value' => '0.00'],
|
||||
['key' => 'default_balance', 'value' => '100.00'],
|
||||
['key' => 'maintenance_mode', 'value' => 'false'],
|
||||
]);
|
||||
\DB::table('promo_codes')->insert(['code' => 'START100', 'value' => 100.00]);
|
||||
|
||||
// Seed promo code
|
||||
DB::table('promo_codes')->insert([
|
||||
'code' => 'START100',
|
||||
'value' => 100.00,
|
||||
]);
|
||||
|
||||
// Seed sample game
|
||||
DB::table('games')->insert([
|
||||
'name' => 'Slots',
|
||||
'enabled' => true,
|
||||
'win_probability' => 50.00,
|
||||
'min_bet' => 1.00,
|
||||
'max_bet' => 100.00,
|
||||
'description' => 'Pragmatic Play-style slots',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user