Enhance License Key Management and Enterprise Features: Update license key validation logic to ensure proper handling of enterprise licenses, including new cron job for refreshing license validity. Introduce new SQL migration for isValidEnterpriseLicense column and refactor related API procedures for better error handling and user feedback.

This commit is contained in:
Mauricio Siu
2026-01-29 22:37:10 -06:00
parent 9a8de9ae16
commit 12a87f9f8b
11 changed files with 7395 additions and 51 deletions

View File

@@ -58,6 +58,9 @@ export const user = pgTable("user", {
.notNull()
.default(false),
licenseKey: text("licenseKey"),
isValidEnterpriseLicense: boolean("isValidEnterpriseLicense")
.notNull()
.default(false),
stripeCustomerId: text("stripeCustomerId"),
stripeSubscriptionId: text("stripeSubscriptionId"),
serversQuantity: integer("serversQuantity").notNull().default(0),