StreakFit — API Laravel 13 OSDD + Octane/FrankenPHP
Build & Deploy / build (push) Successful in 18s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-19 03:00:17 +02:00
co-authored by Claude Opus 4.8
commit af32669931
300 changed files with 21235 additions and 0 deletions
@@ -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('programs', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained();
$table->string('name');
$table->string('slug')->index();
$table->text('description')->nullable();
$table->unsignedInteger('duration_weeks');
$table->unsignedTinyInteger('days_per_week')->nullable();
$table->boolean('is_public')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('programs');
}
};
@@ -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
{
// Une case du planning : une semaine/jour donnée du programme, optionnellement liée à une routine.
Schema::create('program_slots', function (Blueprint $table) {
$table->id();
$table->foreignId('program_id')->constrained();
$table->unsignedInteger('week'); // 1..duration_weeks
$table->unsignedTinyInteger('weekday'); // 1 (lundi) .. 7 (dimanche)
$table->foreignId('routine_id')->nullable()->constrained();
$table->string('label')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('program_slots');
}
};