-- AlterTable: off-catalog ingredient "placeholder" rows. Every existing row -- is a real seeded catalog entry, so the flag defaults to false and the four -- new nullable columns stay NULL for them — no backfill needed. ALTER TABLE "ingredients" ADD COLUMN "is_placeholder" BOOLEAN NOT NULL DEFAULT false; ALTER TABLE "ingredients" ADD COLUMN "display_name" TEXT; ALTER TABLE "ingredients" ADD COLUMN "created_by_id" INTEGER; ALTER TABLE "ingredients" ADD COLUMN "created_at" TIMESTAMP(3); ALTER TABLE "ingredients" ADD COLUMN "reviewed_at" TIMESTAMP(3); -- CreateIndex CREATE INDEX "ingredients_is_placeholder_idx" ON "ingredients"("is_placeholder"); -- AddForeignKey ALTER TABLE "ingredients" ADD CONSTRAINT "ingredients_created_by_id_fkey" FOREIGN KEY ("created_by_id") REFERENCES "user_profiles"("id") ON DELETE SET NULL ON UPDATE CASCADE;