grapper betsapi

This commit is contained in:
salam committed 2025-12-22 08:15:59 +01:00
1 parent 406fd26864
commit a3c9f16550
127 files changed
+158128 -650

No files matched your search

@@ -13,7 +13,6 @@ return new class extends Migration
{
Schema::create('events', function (Blueprint $table) {
$table->id();
$table->integer('tx_id')->default(0)->nullable()->index();
$table->integer('provider_id')->default(0)->nullable()->index();
$table->integer('betsapi_id')->default(0)->nullable()->index();
$table->integer('betradar_id')->default(0)->nullable()->index();
@@ -13,7 +13,6 @@ return new class extends Migration
{
Schema::create('elements', function (Blueprint $table) {
$table->id();
$table->integer('tx_id')->index();
$table->string('name');
$table->integer('sport_id')->index();
$table->timestamps();
@@ -14,7 +14,6 @@ return new class extends Migration
Schema::create('groups', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->integer('tx_id')->index();
$table->integer('sport_id')->index();
$table->integer('competition_group_id')->index();
$table->integer('country_id')->default(0)->nullable()->index();
@@ -14,7 +14,6 @@ return new class extends Migration
Schema::create('competition_groups', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->integer('tx_id')->index();
$table->integer('sport_id')->index();
$table->integer('country_id')->default(0)->nullable()->index();
$table->timestamps();
@@ -25,6 +25,7 @@ return new class extends Migration
$table->decimal('margin', 5, 1)->default(0);
$table->boolean('flag')->default(0);
$table->boolean('nuh_check')->default(0);
$table->timestamp('starting_time')->nullable();
$table->timestamp('last_check_at')->nullable();
$table->timestamp('source_updated_at')->nullable();
$table->timestamps();
@@ -24,6 +24,7 @@ return new class extends Migration
$table->decimal('margin', 5, 1)->default(0);
$table->boolean('flag')->default(0);
$table->boolean('nuh_check')->default(0);
$table->timestamp('starting_time')->nullable();
$table->timestamp('last_check_at')->nullable();
$table->timestamp('source_updated_at')->nullable();
$table->timestamps();
@@ -25,6 +25,7 @@ return new class extends Migration
$table->decimal('margin', 5, 1)->default(0);
$table->boolean('flag')->default(0);
$table->boolean('nuh_check')->default(0);
$table->timestamp('starting_time')->nullable();
$table->timestamp('last_check_at')->nullable();
$table->timestamp('source_updated_at')->nullable();
$table->timestamps();
@@ -15,7 +15,7 @@ return new class extends Migration
$table->id();
$table->string('name');
$table->string('icon')->nullable();
$table->string('image')->nullable();
$table->string('svg')->nullable();
$table->integer('baid')->default(0);
$table->integer('txid')->default(0);
$table->boolean('txso')->default(0);
@@ -13,14 +13,10 @@ return new class extends Migration
{
Schema::create('mappers', function (Blueprint $table) {
$table->id();
$table->integer('event_id')->index();
$table->integer('sport_id')->index();
$table->integer('bookmaker_id')->index();
$table->integer('provider_id')->default(0)->nullable()->index();
$table->integer('tx_id')->default(0)->nullable()->index();
$table->integer('betradar_id')->default(0)->nullable()->index();
$table->integer('betsapi_id')->default(0)->nullable()->index();
$table->integer('bet365_id')->default(0)->nullable()->index();
$table->integer('_1xbet_id')->default(0)->nullable()->index();
$table->integer('betfairsb_id')->default(0)->nullable()->index();
$table->dateTime('starttime')->nullable();
$table->string('group')->nullable();
$table->integer('group_id')->default(0)->nullable()->index();
+6 -5
View File
@@ -14,11 +14,12 @@ class SupervisorSeeder extends Seeder
*/
$sql = "INSERT INTO `supervisors` (`id`, `name`, `provider_id`, `sport_id`, `sleep`, `limit`, `runtime`, `maxsconds`, `lastcall`, `is_cron`, `is_active`, `created_at`, `updated_at`)
VALUES
(1, 'Fixtures', 1, 1, 10, 0, '0.033', 1800, 0, 1, 1, '2025-08-27 07:39:55', '2025-12-18 18:00:40'),
(2, 'Odds', 1, 1, 10, 0, '0.121', 30, 0, 0, 1, '2025-12-01 05:41:02', '2025-12-19 11:39:07'),
(3, 'Fixtures', 4, 1, 10, 0, '0', 30, 0, 0, 1, '2025-12-18 17:44:33', '2025-12-18 18:41:36'),
(4, 'Fixtures', 2, 0, 15, 0, NULL, 1800, 0, 0, 1, '2025-12-19 11:42:35', '2025-12-19 11:42:42'),
(5, 'IdMapper', 2, 0, 15, 0, '0.032', 1800, 0, 0, 1, '2025-12-19 11:48:05', '2025-12-19 12:36:57');
(1, 'Fixtures', 1, 1, 10, 0, '0.042', 1800, 0, 1, 1, '2025-08-27 07:39:55', '2025-12-22 05:20:19'),
(2, 'Odds', 1, 1, 10, 0, '0.251', 30, 0, 0, 1, '2025-12-01 05:41:02', '2025-12-22 05:20:40'),
(3, 'Fixtures', 4, 1, 10, 0, '0', 30, 0, 1, 1, '2025-12-18 17:44:33', '2025-12-22 06:41:48'),
(4, 'Fixtures', 2, 0, 15, 0, NULL, 1800, 0, 1, 1, '2025-12-19 11:42:35', '2025-12-22 06:41:47'),
(5, 'Willhill', 2, 0, 15, 0, '0.235', 1800, 0, 1, 1, '2025-12-19 11:48:05', '2025-12-22 06:41:51'),
(6, 'Bwin', 2, 0, 15, 0, NULL, 1800, 0, 1, 1, '2025-12-22 06:41:18', '2025-12-22 06:41:52');
";
DB::unprepared($sql);