-- AlterTable
ALTER TABLE "users" ADD COLUMN     "active_product_id" TEXT;

-- CreateIndex
CREATE INDEX "users_active_product_id_idx" ON "users"("active_product_id");

-- AddForeignKey
ALTER TABLE "users" ADD CONSTRAINT "users_active_product_id_fkey" FOREIGN KEY ("active_product_id") REFERENCES "products"("id") ON DELETE SET NULL ON UPDATE CASCADE;
