provider, clients migration & resource

This commit is contained in:
salam committed 2025-08-24 08:10:57 +02:00
1 parent ab44b05fa3
commit cbe68f78be
56 files changed
+721 -289

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class OtherSeeder extends Seeder
{
public function run(): void
{
$sql = "INSERT INTO `providers` (`id`, `name`, `icon`, `created_at`, `updated_at`)
VALUES
('1', 'TXOdds', NULL, '2025-08-24 06:04:57', '2025-08-24 06:04:57'),
('2', 'BetsApi', NULL, '2025-08-24 06:07:33', '2025-08-24 06:07:33'),
('3', 'Direct', NULL, '2025-08-24 06:07:38', '2025-08-24 06:07:38');
";
DB::unprepared($sql);
$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);
}
}