user wip
This commit is contained in:
1 parent
0543823a4f
commit
e493c4ed42
106 files changed
+3981
-71
No files matched your search
-2
@@ -40,8 +40,6 @@ return new class extends Migration
|
||||
$table->string('home');
|
||||
// away
|
||||
$table->string('away');
|
||||
$table->integer('cnt_bkm_tx')->default(0);
|
||||
$table->integer('cnt_bkm_ba')->default(0);
|
||||
$table->timestamps();
|
||||
$table->index(['spid', 'prid', 'txid', 'brid', 'baid', 'cnid', 'grid', 'cgid', 'hoid', 'awid']);
|
||||
});
|
||||
@@ -16,15 +16,8 @@ return new class extends Migration
|
||||
$table->string('command')->nullable();
|
||||
$table->string('name')->nullable();
|
||||
|
||||
$table->integer('option_id')->default(0);
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('provider_id')->default(0);
|
||||
$table->integer('client_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
|
||||
$table->integer('sleep')->default(10);
|
||||
$table->integer('limit')->default(0);
|
||||
$table->integer('multi')->default(0);
|
||||
|
||||
$table->string('runtime')->nullable();
|
||||
$table->integer('events')->default(0);
|
||||
@@ -32,7 +25,6 @@ return new class extends Migration
|
||||
|
||||
$table->boolean('is_cron')->default(0);
|
||||
$table->boolean('is_active')->default(0);
|
||||
$table->boolean('has_log')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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_3ways', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('matchpart_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->decimal('home', 7, 3)->default(0);
|
||||
$table->decimal('draw', 7, 3)->default(0);
|
||||
$table->decimal('away', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('odds_3ways');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,35 @@
|
||||
<?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', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('matchpart_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->decimal('home', 7, 3)->default(0);
|
||||
$table->decimal('away', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('odds_2ways');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,35 @@
|
||||
<?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_dnb', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('matchpart_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->decimal('dnb1', 7, 3)->default(0);
|
||||
$table->decimal('dnb2', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('odds_dnb');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('matchpart_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->decimal('home', 7, 3)->default(0);
|
||||
$table->decimal('away', 7, 3)->default(0);
|
||||
$table->decimal('handicap', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('odds_handicaps');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('sport_id')->default(0);
|
||||
$table->integer('matchpart_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->decimal('over', 7, 3)->default(0);
|
||||
$table->decimal('under', 7, 3)->default(0);
|
||||
$table->decimal('spread', 7, 3)->default(0);
|
||||
$table->decimal('margin', 7, 3)->default(0);
|
||||
$table->integer('add_time')->default(0);
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('odds_totals');
|
||||
}
|
||||
};
|
||||
@@ -20,6 +20,10 @@ return new class extends Migration
|
||||
$table->boolean('txso')->default(0);
|
||||
$table->boolean('txot')->default(0);
|
||||
$table->boolean('provider_id')->default(0);
|
||||
$table->boolean('from_tx_soccer')->default(0);
|
||||
$table->boolean('from_tx_other')->default(0);
|
||||
$table->boolean('from_betsapi')->default(0);
|
||||
$table->boolean('from_direct')->default(0);
|
||||
$table->boolean('is_active')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
<?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('supervisor_options', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('supervisor_options');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user