feat: meal post ingredients

This commit is contained in:
2026-05-18 14:39:57 +02:00
parent 7916e7f718
commit 7a907f2b17
12 changed files with 404 additions and 10 deletions
@@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('meal_post_ingredients', function (Blueprint $table) {
$table->id();
$table->foreignUlid('meal_posts_id')->constrained('meal_posts')->cascadeOnDelete();
$table->integer('position');
$table->string('ingredient');
$table->string('unit');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('meal_post_ingredients');
}
};