42 lines
1.4 KiB
PHP
42 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class OtherSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
/**
|
|
* Provoider
|
|
*/
|
|
$sql = "INSERT INTO `providers` (`id`, `name`)
|
|
VALUES
|
|
('1', 'TxOdds'),
|
|
('2', 'BetsApi'),
|
|
('3', 'Direct');
|
|
";
|
|
DB::unprepared($sql);
|
|
|
|
/**
|
|
* Clients
|
|
*/
|
|
$sql = "INSERT INTO `clients` (`id`, `name`, `homepage`, `bookmaker`, `sport`, `created_at`, `updated_at`)
|
|
VALUES
|
|
('1', 'Magloo', NULL, '[\"20\",\"24\"]', '[\"1\",\"3\"]', '2025-08-24 05:56:41', '2025-08-24 05:56:41'),
|
|
('2', 'Logifuture', NULL, '[\"26\",\"27\"]', '[\"1\",\"2\",\"3\",\"5\"]', '2025-08-24 05:57:01', '2025-08-24 05:57:01');";
|
|
DB::unprepared($sql);
|
|
|
|
/**
|
|
* Supervisor
|
|
*/
|
|
$sql = "INSERT INTO `supervisors` (`id`, `name`, `type`, `provider_id`, `sport_id`, `bookmaker_id`, `sleep`, `limit`, `runtime`, `events`, `lastcall`, `is_cron`, `is_active`, `created_at`, `updated_at`)
|
|
VALUES
|
|
('1', 'Fixtures Soccer', 'Grapper', '1', '1', NULL, '10', '0', NULL, '0', '0', '1', '0', '2025-08-27 07:39:55', '2025-08-27 07:39:55');";
|
|
DB::unprepared($sql);
|
|
|
|
}
|
|
}
|