File size: 1,080 Bytes
d6f631f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # Subscription Addon
This package contains the subscription addon related functionality.
## Entity Relationship Diagram
```mermaid
erDiagram
Subscription ||--|| SubscriptionAddon : "has (1:1)"
SubscriptionAddon ||--o{ SubscriptionAddonQuantity : "has (1:N)"
SubscriptionAddon ||--o{ SubscriptionAddonRateCard : "has (1:N) calculated from Addon"
Addon ||--|| SubscriptionAddon : "has (1:1)"
Subscription {
string id PK
}
Addon {
string id PK
}
SubscriptionAddon {
string id PK
string subscription_id FK
string addon_id FK
}
SubscriptionAddonQuantity {
string id PK
string subscription_addon_id FK
}
SubscriptionAddonRateCard {
}
```
## Quirks
1. **Feature resolution**: When an addon creates a new SubscriptionItem (not a split of an existing one but a new item), the featureKey => feature resolution will happen at sync time. This means, that potentially, in a subscription, items with the same featureKey reference can point to different feature instances. |