wip
This commit is contained in:
1 parent
419148cd18
commit
7abcc5c56c
75 files changed
+32250
-127794
No files matched your search
+3
-6
@@ -16,19 +16,16 @@ return new class extends Migration
|
||||
$table->dateTime('starttime')->nullable();
|
||||
$table->integer('sport_id')->index();
|
||||
$table->integer('country_id')->default(0)->nullable()->index();
|
||||
$table->integer('liga_id')->default(0)->nullable()->index();
|
||||
$table->integer('group_id')->default(0)->nullable()->index();
|
||||
$table->integer('competition_group_id')->default(0)->nullable()->index();
|
||||
$table->integer('home_id')->default(0)->nullable()->index();
|
||||
$table->integer('away_id')->default(0)->nullable()->index();
|
||||
|
||||
$table->integer('provider_id')->default(0)->nullable()->index();
|
||||
$table->integer('txodds_id')->default(0)->nullable()->index();
|
||||
$table->integer('provider_id')->default(0)->nullable()->index();
|
||||
$table->integer('betaid_id')->default(0)->nullable()->index();
|
||||
$table->integer('betradar_id')->default(0)->nullable()->index();
|
||||
|
||||
$table->integer('magnig_id')->default(0)->nullable()->index();
|
||||
$table->integer('magken_id')->default(0)->nullable()->index();
|
||||
$table->integer('lognig_id')->default(0)->nullable()->index();
|
||||
$table->integer('logcol_id')->default(0)->nullable()->index();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('event_bookmakers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('event_id')->index();
|
||||
$table->integer('bookmaker_id')->index();
|
||||
$table->string('bmoid')->nullable();
|
||||
$table->boolean('send_status')->default(0);
|
||||
$table->timestamp('bkm_starttime')->nullable();
|
||||
$table->timestamp('last_check_at')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('event_bookmakers');
|
||||
}
|
||||
};
|
||||
@@ -13,12 +13,9 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('elements', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('txodds_id')->index();
|
||||
$table->string('name');
|
||||
$table->integer('sport_id')->index();
|
||||
$table->integer('txodds_id')->default(0)->nullable()->index();
|
||||
$table->integer('betsapi_id')->default(0)->nullable()->index();
|
||||
$table->integer('mag_id')->default(0)->nullable()->index();
|
||||
$table->integer('log_id')->default(0)->nullable()->index();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('element_filters', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('element_id')->index();
|
||||
$table->integer('bkm_element_id')->index();
|
||||
$table->integer('bookmaker_id')->index();
|
||||
$table->string('name');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('element_filters');
|
||||
}
|
||||
};
|
||||
+4
-6
@@ -11,15 +11,13 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('ligas', function (Blueprint $table) {
|
||||
Schema::create('groups', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->integer('txodds_id')->index();
|
||||
$table->integer('sport_id')->index();
|
||||
$table->integer('competition_group_id')->index();
|
||||
$table->integer('country_id')->default(0)->nullable()->index();
|
||||
$table->integer('txodds_id')->default(0)->nullable()->index();
|
||||
$table->integer('betsapi_id')->default(0)->nullable()->index();
|
||||
$table->integer('mag_id')->default(0)->nullable()->index();
|
||||
$table->integer('log_id')->default(0)->nullable()->index();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
@@ -29,6 +27,6 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('ligas');
|
||||
Schema::dropIfExists('groups');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('group_filters', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('group_id')->index();
|
||||
$table->integer('bkm_group_id')->index();
|
||||
$table->integer('bookmaker_id')->index();
|
||||
$table->string('name')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('group_filters');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('competition_groups', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->integer('txodds_id')->index();
|
||||
$table->integer('sport_id')->index();
|
||||
$table->integer('country_id')->default(0)->nullable()->index();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('competition_groups');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('competition_group_filters', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('competition_group_id')->default(0)->nullable()->index();
|
||||
$table->integer('bkm_competition_group_id')->default(0)->nullable()->index();
|
||||
$table->integer('bookmaker_id')->default(0)->nullable()->index();
|
||||
$table->string('name')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('competition_group_filters');
|
||||
}
|
||||
};
|
||||
+1
-1
@@ -19,7 +19,7 @@ return new class extends Migration
|
||||
$table->string('iso3')->nullable();
|
||||
$table->string('cc')->nullable();
|
||||
$table->integer('numeric')->nullable();
|
||||
$table->integer('txid')->default(0);
|
||||
$table->integer('txodds_id')->default(0);
|
||||
$table->boolean('is_country')->default(0);
|
||||
$table->boolean('disabled')->default(0);
|
||||
$table->timestamps();
|
||||
@@ -22,14 +22,12 @@ return new class extends Migration
|
||||
$table->decimal('a3w', 7, 3)->default(0);
|
||||
$table->decimal('margin', 5, 1)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->timestamp('last_check_at');
|
||||
$table->timestamp('source_updated_at');
|
||||
$table->boolean('nuh_check')->default(0);
|
||||
$table->timestamp('last_check_at')->nullable();
|
||||
$table->timestamp('source_updated_at')->nullable();
|
||||
$table->timestamps();
|
||||
$table->index(['event_id']);
|
||||
$table->index(['sport_id']);
|
||||
$table->index(['bookmaker_id']);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -21,13 +21,12 @@ return new class extends Migration
|
||||
$table->decimal('a2w', 7, 3)->default(0);
|
||||
$table->decimal('margin', 5, 1)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->timestamp('last_check_at');
|
||||
$table->timestamp('source_updated_at');
|
||||
$table->boolean('nuh_check')->default(0);
|
||||
$table->timestamp('last_check_at')->nullable();
|
||||
$table->timestamp('source_updated_at')->nullable();
|
||||
$table->timestamps();
|
||||
$table->index(['event_id']);
|
||||
$table->index(['sport_id']);
|
||||
$table->index(['bookmaker_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -22,13 +22,12 @@ return new class extends Migration
|
||||
$table->decimal('dc2x', 7, 3)->default(0);
|
||||
$table->decimal('margin', 5, 1)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->timestamp('last_check_at');
|
||||
$table->timestamp('source_updated_at');
|
||||
$table->boolean('nuh_check')->default(0);
|
||||
$table->timestamp('last_check_at')->nullable();
|
||||
$table->timestamp('source_updated_at')->nullable();
|
||||
$table->timestamps();
|
||||
$table->index(['event_id']);
|
||||
$table->index(['sport_id']);
|
||||
$table->index(['bookmaker_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -21,13 +21,12 @@ return new class extends Migration
|
||||
$table->decimal('dnb2', 7, 3)->default(0);
|
||||
$table->decimal('margin', 5, 1)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->timestamp('last_check_at');
|
||||
$table->timestamp('source_updated_at');
|
||||
$table->boolean('nuh_check')->default(0);
|
||||
$table->timestamp('last_check_at')->nullable();
|
||||
$table->timestamp('source_updated_at')->nullable();
|
||||
$table->timestamps();
|
||||
$table->index(['event_id']);
|
||||
$table->index(['sport_id']);
|
||||
$table->index(['bookmaker_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -21,13 +21,12 @@ return new class extends Migration
|
||||
$table->decimal('ng', 7, 3)->default(0);
|
||||
$table->decimal('margin', 5, 1)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->timestamp('last_check_at');
|
||||
$table->timestamp('source_updated_at');
|
||||
$table->boolean('nuh_check')->default(0);
|
||||
$table->timestamp('last_check_at')->nullable();
|
||||
$table->timestamp('source_updated_at')->nullable();
|
||||
$table->timestamps();
|
||||
$table->index(['event_id']);
|
||||
$table->index(['sport_id']);
|
||||
$table->index(['bookmaker_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -21,13 +21,12 @@ return new class extends Migration
|
||||
$table->decimal('atq', 7, 3)->default(0);
|
||||
$table->decimal('margin', 5, 1)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->timestamp('last_check_at');
|
||||
$table->timestamp('source_updated_at');
|
||||
$table->boolean('nuh_check')->default(0);
|
||||
$table->timestamp('last_check_at')->nullable();
|
||||
$table->timestamp('source_updated_at')->nullable();
|
||||
$table->timestamps();
|
||||
$table->index(['event_id']);
|
||||
$table->index(['sport_id']);
|
||||
$table->index(['bookmaker_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -22,13 +22,12 @@ return new class extends Migration
|
||||
$table->decimal('handicap', 7, 3)->default(0);
|
||||
$table->decimal('margin', 5, 1)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->timestamp('last_check_at');
|
||||
$table->timestamp('source_updated_at');
|
||||
$table->boolean('nuh_check')->default(0);
|
||||
$table->timestamp('last_check_at')->nullable();
|
||||
$table->timestamp('source_updated_at')->nullable();
|
||||
$table->timestamps();
|
||||
$table->index(['event_id']);
|
||||
$table->index(['sport_id']);
|
||||
$table->index(['bookmaker_id']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -22,14 +22,12 @@ return new class extends Migration
|
||||
$table->decimal('total', 7, 3)->default(0);
|
||||
$table->decimal('margin', 5, 1)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$table->boolean('check')->default(0);
|
||||
$table->timestamp('last_check_at');
|
||||
$table->timestamp('source_updated_at');
|
||||
$table->boolean('nuh_check')->default(0);
|
||||
$table->timestamp('last_check_at')->nullable();
|
||||
$table->timestamp('source_updated_at')->nullable();
|
||||
$table->timestamps();
|
||||
$table->index(['event_id']);
|
||||
$table->index(['sport_id']);
|
||||
$table->index(['bookmaker_id']);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class CountrySeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$sql = "INSERT INTO `countries` (`id`, `name`, `icon`, `iso2`, `iso3`, `cc`, `numeric`, `txid`, `is_country`, `disabled`, `created_at`, `updated_at`)
|
||||
$sql = "INSERT INTO `countries` (`id`, `name`, `icon`, `iso2`, `iso3`, `cc`, `numeric`, `txodds_id`, `is_country`, `disabled`, `created_at`, `updated_at`)
|
||||
VALUES
|
||||
('256', 'Iceland', 'flag-country-IS', NULL, NULL, 'ICE', NULL, '373', '1', '0', '2025-08-30 04:45:33', '2025-08-30 05:52:59'),
|
||||
('1', 'England', 'extra-england', NULL, 'ENG', 'ENG', '0', '382', '1', '0', '2025-05-24 06:40:45', '2025-05-24 06:40:45'),
|
||||
|
||||
@@ -15,7 +15,7 @@ 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', '2', '1', '10', '0', NULL, '1800', '0', '1', '1', '2025-08-27 07:39:55', '2025-12-01 05:07:21'),
|
||||
('2', 'Odds', '2', '1', '10', '0', NULL, '30', '0', '0', '0', '2025-12-01 05:41:02', '2025-12-01 05:41:02');
|
||||
('2', 'Odds', '2', '1', '10', '0', NULL, '30', '0', '0', '1', '2025-12-01 05:41:02', '2025-12-01 05:41:02');
|
||||
";
|
||||
DB::unprepared($sql);
|
||||
|
||||
|
||||
Reference in new issue
Block a user