Links between Currency Module and Other Modules
This document showcases the module links defined between the Currency Module and other Commerce Modules.
Summary#
The Currency Module has the following links to other modules:
Tip: Read-only links are used to query data across modules, but the relations aren't stored in a pivot table in the database.
First Data Model | Second Data Model | Type | Description |
|---|---|---|---|
StoreCurrency in Store Module | Currency | Read-only - has one |
Store Module#
The Store Module has a Currency data model that stores the supported currencies of a store. However, these currencies don't hold all the details of a currency, such as its name or symbol.
Instead, Medusa defines a read-only link between the Store Module's StoreCurrency data model and the Currency Module's Currency data model. Because the link is read-only from the Store's side, you can only retrieve the details of a store's supported currencies, and not the other way around.