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']);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user