Create datastructures to store report data as described in the miro board: Whiteboarding_2024_04_12
@dleard we might need clarification about LFO data (if applicable)
Acceptance Criteria:
Given I am a developer
When I develop a reporting form
Then I have tables to store the data following the program configuration
Given I am a developer
When I store data from a reporting form
Then the data is stored in json format, regardless of the schema that generated it
Given I am developer
When I store data from a reporting form
Then I have the following tables to fan out the data:
Description:
Create datastructures to store report data as described in the miro board: Whiteboarding_2024_04_12 @dleard we might need clarification about LFO data (if applicable)
Acceptance Criteria:
Given I am a developer When I develop a reporting form Then I have tables to store the data following the program configuration
Given I am a developer When I store data from a reporting form Then the data is stored in json format, regardless of the schema that generated it
Given I am developer When I store data from a reporting form Then I have the following tables to fan out the data:
activity_form_data
(json_data, report_version_id, activity_id)source_type_data
(json_data, report_version_id, source_type_id, activity__form_data_id)unit_data
(json_data, report_version_id, source_type_data_id)fuel_data
(json_data, report_version_id, fuel_id, source_type_data_id, emission_data_id)emission_data
(json_data, report_version_id, gas_type_id, source_type_data_id, fuel_data_id)methodology_data
(json_data, report_version_id, methodology_id)A graph of the architecture:
Development Checklist:
Definition of Ready (Note: If any of these points are not applicable, mark N/A)
Definition of Done (Note: If any of these points are not applicable, mark N/A)
Notes:
-