handling arrear prorated upgrade / downgrade

This commit is contained in:
John Yeo
2025-06-06 19:04:33 +01:00
parent 3c188d9020
commit f48172b3c9
112 changed files with 20598 additions and 1144 deletions

View File

@@ -5,6 +5,7 @@ import { customers } from "../../cusModels/cusTable.js";
import { features } from "../../featureModels/featureTable.js";
import { customerEntitlements } from "./cusEntTable.js";
import { customerProducts } from "../cusProductTable.js";
import { replaceables } from "./replaceableTable.js";
export const customerEntitlementsRelations = relations(
customerEntitlements,
@@ -25,5 +26,6 @@ export const customerEntitlementsRelations = relations(
fields: [customerEntitlements.internal_feature_id],
references: [features.internal_id],
}),
replaceables: many(replaceables),
}),
);