-- AlterTable
ALTER TABLE "subscriptions" ADD COLUMN     "total_lifetime_optimizations" INTEGER NOT NULL DEFAULT 0;

-- Update existing rows to have total_lifetime_optimizations equal to their current optimizations_used
UPDATE "subscriptions" SET "total_lifetime_optimizations" = "optimizations_used" WHERE "total_lifetime_optimizations" = 0;
