📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Add legacy 50k events plan
Blue Mouse68e5a6a2b4dc
diff --git a/backend/apps/cloud/src/user/entities/user.entity.ts b/backend/apps/cloud/src/user/entities/user.entity.tsindex 3dee2cceb..8a45e130e 100644--- a/backend/apps/cloud/src/user/entities/user.entity.ts+++ b/backend/apps/cloud/src/user/entities/user.entity.ts@@ -24,6 +24,7 @@ export enum PlanCode {trial = 'trial',hobby = 'hobby',freelancer = 'freelancer',+ '50k' = '50k','100k' = '100k','200k' = '200k','500k' = '500k',@@ -80,6 +81,13 @@ export const ACCOUNT_PLANS = {ypid: '813695', // Plan ID - Yearly billingmaxAlerts: 50,},+ [PlanCode['50k']]: {+ id: PlanCode['50k'],+ monthlyUsageLimit: 50000,+ pid: '918109', // Plan ID+ ypid: '918110', // Plan ID - Yearly billing+ maxAlerts: 50,+ },[PlanCode.freelancer]: {id: PlanCode.freelancer,monthlyUsageLimit: 100000,diff --git a/backend/migrations/mysql/2025_11_03.sql b/backend/migrations/mysql/2025_11_03.sqlnew file mode 100644index 000000000..eeb6fc71a--- /dev/null+++ b/backend/migrations/mysql/2025_11_03.sql@@ -0,0 +1 @@+alter table user modify column `planCode` enum('none','free','trial','hobby','freelancer','50k','100k','200k','500k','startup','2m','enterprise','10m','15m','20m') NOT NULL DEFAULT 'trial' after roles;diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.tsindex 474e52099..77bb50e65 100644--- a/web/app/lib/constants/index.ts+++ b/web/app/lib/constants/index.ts@@ -640,6 +640,29 @@ export const PLAN_LIMITS = {ypid: 813695, // Plan ID - Yearly billingmaxAlerts: 50,},+ '50k': {+ index: 1.5, // 'downgrade' or 'upgrade' logic depends on this+ planCode: '50k',+ monthlyUsageLimit: 50000,+ legacy: true,+ price: {+ USD: {+ monthly: 12,+ yearly: 120,+ },+ EUR: {+ monthly: 10,+ yearly: 100,+ },+ GBP: {+ monthly: 10,+ yearly: 100,+ },+ },+ pid: 918109, // Plan ID+ ypid: 918110, // Plan ID - Yearly billing+ maxAlerts: 50,+ },freelancer: {index: 2, // 'downgrade' or 'upgrade' logic depends on thisplanCode: 'freelancer',