-- CreateTable CREATE TABLE "FooterBadge" ( "id" TEXT NOT NULL, "name" TEXT NOT NULL, "embedHtml" TEXT, "imageUrl" TEXT, "linkUrl" TEXT, "isActive" BOOLEAN NOT NULL DEFAULT true, "sortOrder" INTEGER NOT NULL DEFAULT 0, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL, CONSTRAINT "FooterBadge_pkey" PRIMARY KEY ("id") ); -- CreateIndex CREATE INDEX "FooterBadge_isActive_sortOrder_idx" ON "FooterBadge"("isActive", "sortOrder"); -- Seed current Product Hunt + LaunchBuff badges INSERT INTO "FooterBadge" ("id", "name", "embedHtml", "imageUrl", "linkUrl", "isActive", "sortOrder", "createdAt", "updatedAt") VALUES ( 'seed_producthunt', 'Product Hunt', 'Songs2VID - Bulk render audio & artworks into videos in seconds | Product Hunt', 'https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1206681&theme=dark&t=1785422871345', 'https://www.producthunt.com/products/songs2vid?embed=true&utm_source=badge-featured&utm_medium=badge&utm_campaign=badge-songs2vid', true, 0, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP ), ( 'seed_launchbuff', 'LaunchBuff', 'Featured on LaunchBuff', 'https://launchbuff.com/badge-featured-dark.svg', 'https://launchbuff.com', true, 1, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP );