add txodds markets as a resource
This commit is contained in:
1 parent
e14404ec8b
commit
5fa1d02dbd
26 files changed
+921
-55
No files matched your search
@@ -25,6 +25,7 @@ return new class extends Migration
|
||||
$table->text('app_authentication_secret')->nullable();
|
||||
$table->text('app_authentication_recovery_codes')->nullable();
|
||||
$table->boolean('has_email_authentication')->default(false);
|
||||
$table->boolean('stars_status')->default(false);
|
||||
$table->timestamp('app_verified_at')->nullable();
|
||||
|
||||
$table->rememberToken();
|
||||
|
||||
@@ -15,9 +15,9 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->integer('provider_id')->default(0)->nullable()->references('id')->on('providers');
|
||||
$table->integer('sport_id')->references('id')->on('sports');
|
||||
$table->integer('sport_id')->references('id')->on('sports')->nullable();
|
||||
|
||||
$table->integer('sleep')->default(10);
|
||||
$table->integer('sleep')->default(30);
|
||||
$table->integer('limit')->default(0);
|
||||
|
||||
$table->string('runtime')->nullable();
|
||||
@@ -26,11 +26,11 @@ return new class extends Migration
|
||||
$table->integer('lastcall')->default(0);
|
||||
|
||||
$table->boolean('use_lastcall')->default(0);
|
||||
$table->boolean('is_cron')->default(0);
|
||||
$table->boolean('is_supervisor')->default(0);
|
||||
$table->boolean('is_active')->default(0);
|
||||
|
||||
$table->integer('days_from')->default(10);
|
||||
$table->integer('days_to')->default(10);
|
||||
$table->integer('days_from')->default(10)->nullable();
|
||||
$table->integer('days_to')->default(10)->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -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('event_user_stars', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('event_id')->index()->constrained()->cascadeOnDelete()->references('id')->on('events');
|
||||
$table->integer('user_id')->index()->references('id')->on('users');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('event_user_stars');
|
||||
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,34 @@
|
||||
<?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('txodds_markets', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('market_id')->nullable();
|
||||
$table->string('shortname');
|
||||
$table->string('name');
|
||||
$table->boolean(column: 'soccer')->default(0);
|
||||
$table->boolean(column: 'ice_hockey')->default(0);
|
||||
$table->boolean(column: 'basketball')->default(0);
|
||||
$table->boolean(column: 'tennis')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('txodds_markets');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user