new garpper tasks

This commit is contained in:
salam committed 2026-07-01 08:08:54 +02:00
1 parent c6255be910
commit be2a16a812
13 files changed
+411 -55

No files matched your search

@@ -0,0 +1,38 @@
<?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('sofa_score_tasks', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('mode');
$table->integer('sport_id')->index()->references('id')->on('sports');
$table->date('day_from')->nullable();
$table->date('day_to')->nullable();
$table->boolean('is_active')->default(0);
$table->boolean('compleated')->default(0);
$table->boolean('run_repeatedly')->default(0);
$table->boolean('run_slow')->default(0);
$table->dateTime('last_start')->nullable();
$table->dateTime('last_end')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('sofa_score_tasks');
}
};