feat(licenses): implement license management and validation features

- Added a new licenses application to handle license key management.
- Implemented API endpoints for validating license keys and managing paid features.
- Introduced a new component for enabling paid features in the dashboard.
- Updated database schema to include a licenseKey field for users.
- Refactored server API to remove the admin router and integrate license validation into user operations.
- Enhanced the monitoring setup process to require valid license keys.
- Updated pnpm workspace configuration to include the new licenses app.
This commit is contained in:
Mauricio Siu
2025-03-17 15:50:04 -06:00
parent 7c17cfb5c7
commit a61436b8f0
22 changed files with 5688 additions and 108 deletions

View File

@@ -56,6 +56,7 @@ export const users_temp = pgTable("user_temp", {
logCleanupCron: text("logCleanupCron"),
// Metrics
enablePaidFeatures: boolean("enablePaidFeatures").notNull().default(false),
licenseKey: text("licenseKey"),
metricsConfig: jsonb("metricsConfig")
.$type<{
server: {