wip
This commit is contained in:
1 parent
b004742d47
commit
96334bb1e4
33 files changed
+1650
-2
No files matched your search
@@ -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('sports', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('code')->nullable();
|
||||
$table->string('icon')->nullable();
|
||||
$table->boolean('disabled')->default(0);
|
||||
$table->integer('bapi')->default(0);
|
||||
$table->integer('bwin')->default(0);
|
||||
$table->integer('b365')->default(0);
|
||||
$table->integer('logi')->default(0);
|
||||
$table->integer('magl')->default(0);
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('sports');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,47 @@
|
||||
<?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('supervisors', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$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);
|
||||
$table->integer('lastcall')->default(0);
|
||||
|
||||
$table->boolean('is_cron')->default(0);
|
||||
$table->boolean('is_active')->default(0);
|
||||
$table->boolean('has_log')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('supervisors');
|
||||
}
|
||||
};
|
||||
@@ -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('bookmakers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('icon')->nullable();
|
||||
$table->integer('baid')->default(0);
|
||||
$table->integer('txid')->default(0);
|
||||
$table->boolean('txso')->default(0);
|
||||
$table->boolean('txot')->default(0);
|
||||
$table->boolean('provider_id')->default(0);
|
||||
$table->boolean('is_active')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('bookmakers');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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('providers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('icon')->nullable();
|
||||
$table->boolean('is_leader')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('providers');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
<?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('clients', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('icon')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('clients');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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('client_bookmakers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('client_id');
|
||||
$table->integer('bookmaker_id');
|
||||
$table->boolean('is_active')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('client_bookmakers');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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');
|
||||
}
|
||||
};
|
||||
@@ -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('countries', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('iso2');
|
||||
$table->string('iso3');
|
||||
$table->string('numeric');
|
||||
$table->integer('txid')->default(0);
|
||||
$table->boolean('tx_only')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('countries');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
<?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('events', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamp('time')->nullable();
|
||||
// sport id
|
||||
$table->integer('spid');
|
||||
// provider id
|
||||
$table->integer('prid')->default(0);
|
||||
// txodds id
|
||||
$table->integer('txid')->default(0);
|
||||
// betradar id
|
||||
$table->integer('brid')->default(0);
|
||||
// betaid id
|
||||
$table->integer('baid')->default(0);
|
||||
// county id
|
||||
$table->integer('cnid')->default(0);
|
||||
// group id
|
||||
$table->integer('grid')->default(0);
|
||||
// competition group id
|
||||
$table->integer('cgid')->default(0);
|
||||
// home id
|
||||
$table->integer('hoid')->default(0);
|
||||
// away id
|
||||
$table->integer('awid')->default(0);
|
||||
// liga (group name)
|
||||
$table->string('liga');
|
||||
// home
|
||||
$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']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('events');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,78 @@
|
||||
<?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->foreignId('event_id')->constrained()->cascadeOnDelete();
|
||||
$table->timestamp('time')->nullable();
|
||||
$table->integer('bkid')->default(0);
|
||||
$table->string('boid')->nullable();
|
||||
|
||||
// flag status
|
||||
$table->integer('flag')->default(0);
|
||||
// swop (inverted odds)
|
||||
$table->integer('swop')->default(0);
|
||||
|
||||
// 1x2
|
||||
$table->decimal('h3w', 7, 3)->default(0);
|
||||
$table->decimal('d3w', 7, 3)->default(0);
|
||||
$table->decimal('a3w', 7, 3)->default(0);
|
||||
$table->decimal('m3w', 7, 3)->default(0);
|
||||
$table->integer('f3w')->default(0);
|
||||
// bookmaker offer id
|
||||
|
||||
// Total
|
||||
$table->decimal('ov', 7, 3)->default(0);
|
||||
$table->decimal('un', 7, 3)->default(0);
|
||||
$table->decimal('hc', 7, 3)->default(0);
|
||||
$table->decimal('mto', 7, 3)->default(0);
|
||||
$table->integer('fto')->default(0);
|
||||
|
||||
// ML
|
||||
$table->decimal('h2w', 7, 3)->default(0);
|
||||
$table->decimal('a2w', 7, 3)->default(0);
|
||||
$table->decimal('m2w', 7, 3)->default(0);
|
||||
$table->integer('f2w')->default(0);
|
||||
|
||||
// DC
|
||||
$table->decimal('dc1x', 7, 3)->default(0);
|
||||
$table->decimal('dc12', 7, 3)->default(0);
|
||||
$table->decimal('dc2x', 7, 3)->default(0);
|
||||
$table->decimal('mdc', 7, 3)->default(0);
|
||||
$table->integer('fdc')->default(0);
|
||||
|
||||
// GG NG
|
||||
$table->decimal('gg', 7, 3)->default(0);
|
||||
$table->decimal('ng', 7, 3)->default(0);
|
||||
$table->decimal('mgg', 7, 3)->default(0);
|
||||
$table->integer('fgg')->default(0);
|
||||
|
||||
// TO QUALIFY
|
||||
$table->decimal('htq', 7, 3)->default(0);
|
||||
$table->decimal('atq', 7, 3)->default(0);
|
||||
$table->decimal('mtq', 7, 3)->default(0);
|
||||
$table->integer('ftq')->default(0);
|
||||
|
||||
$table->timestamps();
|
||||
$table->index(['event_id', 'boid', 'bkid', 'flag']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('event_bookmakers');
|
||||
}
|
||||
};
|
||||
@@ -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('multilines', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('client_id')->default(0);
|
||||
$table->integer('bettype_id')->default(0);
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->integer('sort-order')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('multilines');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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('bettypes', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('bettypes');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user