This commit is contained in:
Alex Holliday committed 2025-12-02 00:20:09 +00:00
1 parent 01c0e9ef4d
commit 1b162578c2
22 files changed
+450 -72

No files matched your search

+1 -4
View File
@@ -18,12 +18,11 @@ export interface IOrg extends Document {
// Billing
billingCustomerId?: string;
subscriptionId?: string;
priceId: string;
priceIds?: string[];
subscriptionStatus?: SubscriptionStatus;
currentPeriodStart?: Date;
currentPeriodEnd?: Date;
trialEnd?: Date;
cancelAtPeriodEnd?: boolean;
// Cached entitlements
entitlements: {
@@ -61,8 +60,6 @@ const orgSchema = new Schema<IOrg>(
},
currentPeriodStart: { type: Date },
currentPeriodEnd: { type: Date },
trialEnd: { type: Date },
cancelAtPeriodEnd: { type: Boolean },
entitlements: {
plan: { type: String },
monitorsMax: { type: Number },