The `campaign_events` table would have two fields, `event_tracking_tool_id` and `event_tracking_tool_dashboard_id` (better names needed). Then we’d create the `tracking_tool` table with the fields: `tracking_tool_id` (FK to the ID in the campaign_events table)Context: we need to reimplement the schema so that:
- it can support tools other than just the P&E dashboard
- it does not duplicate information in each record (e.g., `tracking_tool_name`, `tracking_tool_base_url`repeating the base URL in each row)
- it stores a unique identifier of a dashboard that we can use in the code to make API calls etc.
NOTE: I (Daimona) am not convinced that this is a good approach.The `campaign_events` table would have two fields, `event_tracking_tool_id` and `event_tracking_tool_dashboard_id` (better names needed). The former is int|null and refers to a unique identifier of each tracking tool, as determined by the application (see T312869). The latter would be a string|null field holding the identifier of the given dashboard inside that tool (could be a numeric ID, Since it was me who wrote it a few months agoor a name, either I don't understand what I meantor something else depending on the tool).
The application logic would use these fields for its various use cases (again, or do understand it but I may have changed my mindsee T312869).