An organization will have several BDEW code for Marktpartner (see https://bdew-codes.de/Codenumbers/BDEWCodes/CodeOverview and search for 'buzzn' or 'SWM') depending on the role they fulfill. Hence we need to refactor as follows:
Possible market_role are as currently tracked in mode on organization:
transmission_system_operator
distribution_system_operator
metering_point_operator
metering_service_provider
electricity_supplier
balance_group_manager
This way we can track organizations in their various roles and market partner ids. If the organization differs in between role, we can track to separate entities (e.g. "SWM Infrasturktur" vs. "SWM Versorger")
An organization will have several BDEW code for Marktpartner (see https://bdew-codes.de/Codenumbers/BDEWCodes/CodeOverview and search for 'buzzn' or 'SWM') depending on the role they fulfill. Hence we need to refactor as follows:
market_place_id
from organizationBuzzn GmbH | electricity_supplier | 9905229000008
mode
on organization:This way we can track organizations in their various roles and market partner ids. If the organization differs in between role, we can track to separate entities (e.g. "SWM Infrasturktur" vs. "SWM Versorger")