Create AccountMembership model
Problem
CustomersDot needs a model that represents a Customer
's membership to an Account
. This would be similar, but not a 1:1 mapping to a Zuora Contact.
Proposal
Create migration and model for AccountMembership
which represents a Customer
ability to manage an Account
(Zuora Billing Account).
Attributes to consider for model:
- id
- customer_id
- account_id
The relationships created in this join table will be informed by Zuora Contact data, typically received via Zuora Callouts. When processing callouts or after a purchase is made in CustomersDot, the AccountMembership
may be created as a result. This will be implemented in later issues.