id(); $table->string('nama_makanan'); $table->string('slug')->unique()->nullable(); $table->integer('qty'); $table->string('unit'); $table->foreignId('category_id')->nullable()->constrained('categories')->onDelete('set null'); $table->string('kategori')->default('Umum'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('foods'); } };