Files
nuhodds_fi4/database/seeders/OddsTableSeeder.php
T
2026-01-27 15:08:59 +01:00

37 lines
1.3 KiB
PHP

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class OddsTableSeeder extends Seeder
{
public function run(): void
{
/**
* Provoider
*/
$sql = "INSERT INTO `odds_tables` (`id`, `name`, `oddnames`, `created_at`, `updated_at`)
VALUES
(1, 'odds_2ways', 'h2w,a2w', NULL, NULL),
(2, 'odds_2ways_s1', 'h2w,a2w', NULL, NULL),
(3, 'odds_3ways', 'h3w,d3w,a3w', NULL, NULL),
(4, 'odds_3ways_ht', 'h3w,d3w,a3w', NULL, NULL),
(5, 'odds_dc', 'dc1x,dc12,dcx2', NULL, NULL),
(6, 'odds_dnb', 'dnb1,dnb2', NULL, NULL),
(7, 'odds_ggng', 'gg,ng', NULL, NULL),
(8, 'odds_points', 'home,away', NULL, NULL),
(9, 'odds_points_ht', 'home,away', NULL, NULL),
(10, 'odds_points_q1', 'home,away', NULL, NULL),
(11, 'odds_totals', 'over,under', NULL, NULL),
(12, 'odds_totals_ht', 'over,under', NULL, NULL),
(13, 'odds_totals_q1', 'over,under', NULL, NULL),
(14, 'odds_tq', 'htq,atq', NULL, NULL);
;
";
DB::unprepared($sql);
}
}