multiline wip
This commit is contained in:
1 parent
988a148850
commit
245255756c
84 files changed
+663
-94
No files matched your search
@@ -0,0 +1,42 @@
|
||||
<?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('odds_2ways_s1', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->integer('provider_id')->default(0);
|
||||
$table->bigInteger('offer_id')->default(0);
|
||||
$table->string('bmoid')->nullable();
|
||||
$table->decimal('h2w', 7, 3)->default(0);
|
||||
$table->decimal('a2w', 7, 3)->default(0);
|
||||
$table->decimal('margin', 5, 1)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$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']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('odds_2ways_s1');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,43 @@
|
||||
<?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('odds_handicaps_q1', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->integer('provider_id')->default(0);
|
||||
$table->bigInteger('offer_id')->default(0);
|
||||
$table->string('bmoid')->nullable();
|
||||
$table->decimal('home', 7, 3)->default(0);
|
||||
$table->decimal('away', 7, 3)->default(0);
|
||||
$table->decimal('handicap', 7, 3)->default(0);
|
||||
$table->decimal('margin', 5, 1)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$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']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('odds_handicaps_q1');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,43 @@
|
||||
<?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('odds_totals_q1', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->integer('provider_id')->default(0);
|
||||
$table->bigInteger('offer_id')->default(0);
|
||||
$table->string('bmoid')->nullable();
|
||||
$table->decimal('over', 7, 3)->default(0);
|
||||
$table->decimal('under', 7, 3)->default(0);
|
||||
$table->decimal('total', 7, 3)->default(0);
|
||||
$table->decimal('margin', 5, 1)->default(0);
|
||||
$table->boolean('flag')->default(0);
|
||||
$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']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('odds_totals_q1');
|
||||
}
|
||||
};
|
||||
@@ -13,11 +13,12 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('multilines', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('sport_id');
|
||||
$table->integer('client_id')->default(0);
|
||||
$table->integer('bettype_id')->default(0);
|
||||
$table->integer('sport_id');
|
||||
$table->boolean('disabled')->default(0);
|
||||
$table->string('table')->nullable();
|
||||
$table->string('name')->nullable();
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->integer('matchpart_id')->default(0);
|
||||
$table->integer('sort')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -17,6 +17,7 @@ return new class extends Migration
|
||||
$table->integer('bettype_id')->default(0);
|
||||
$table->string('name');
|
||||
$table->text('oddsname');
|
||||
$table->boolean('disabled')->default(0);
|
||||
$table->boolean('can_odds_closed')->default(0);
|
||||
$table->boolean('is_spread')->default(0);
|
||||
$table->boolean('ft')->default(0);
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?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('multiline_settings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->string('name');
|
||||
$table->string('short');
|
||||
$table->string('table');
|
||||
$table->integer('rows')->default(4);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('multiline_settings');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user