feat: history and calculate needs for user
CI / 🧪 Tests Laravel (push) Failing after 2m18s
CI / 🐳 Build & Push Images (push) Has been skipped

This commit is contained in:
2026-08-14 12:45:37 +02:00
parent ea5a5737ec
commit 69372a49ed
51 changed files with 2226 additions and 305 deletions
@@ -19,20 +19,17 @@ return new class extends Migration
$table->string('password');
$table->string('role')->default('user');
$table->text('bio')->nullable();
$table->integer('height')->nullable();
$table->unsignedSmallInteger('height')->nullable();
$table->decimal('target_weight', 5, 2)->nullable();
$table->date('date_of_birth')->nullable();
$table->string('sex')->default('unknown');
$table->string('physical_activity_level')->default('sedentary');
$table->string('weight_goal')->default('lose_weight');
$table->string('pace_preference')->default('slow');
$table->string('sex')->nullable();
$table->string('physical_activity_level')->nullable();
$table->string('weight_goal')->nullable();
$table->string('pace_preference')->nullable();
$table->string('locale', 8)->default('en')->after('email');
$table->string('avatar_url', 2048)->nullable();
// Goals
$table->unsignedInteger('daily_calorie_goal')->default(2000)->after('avatar_url');
$table->decimal('daily_protein_goal', 8, 2)->default(120)->after('daily_calorie_goal');
$table->decimal('daily_carbs_goal', 8, 2)->default(250)->after('daily_protein_goal');
$table->decimal('daily_fats_goal', 8, 2)->default(70)->after('daily_carbs_goal');
$table->timestampTz('onboarding_completed_at')->nullable()->index();
$table->timestampTz('nutrition_estimate_accepted_at')->nullable();
// Moderation
$table->timestamp('suspended_at')->nullable()->after('deleted_at')->index();
$table->ulid('suspended_by')->nullable()->after('suspended_at')->index();