Add enterprise features management: implement license key settings and update user schema

This commit is contained in:
Mauricio Siu
2026-01-28 11:03:00 -06:00
parent 20226a300c
commit f680818b56
7 changed files with 7236 additions and 1 deletions

View File

@@ -53,6 +53,11 @@ export const user = pgTable("user", {
// Metrics
enablePaidFeatures: boolean("enablePaidFeatures").notNull().default(false),
allowImpersonation: boolean("allowImpersonation").notNull().default(false),
// Enterprise / proprietary features
enableEnterpriseFeatures: boolean("enableEnterpriseFeatures")
.notNull()
.default(false),
licenseKey: text("licenseKey"),
stripeCustomerId: text("stripeCustomerId"),
stripeSubscriptionId: text("stripeSubscriptionId"),
serversQuantity: integer("serversQuantity").notNull().default(0),