diff --git a/docs/blueprints/owid/owid_domain_model.txt b/docs/blueprints/owid/owid_domain_model.txt index c99b945cce9b112fe0a396a4cb3d6101362a5376..759ce0da8502a1614d3d81fc14d93a2136e55998 100644 --- a/docs/blueprints/owid/owid_domain_model.txt +++ b/docs/blueprints/owid/owid_domain_model.txt @@ -106,15 +106,46 @@ entity OwidDateReported { {classifier} get_all_as_dict() {classifier} get_by_id(other_id: Integer) {classifier} find_by_id(other_id: Integer) - {classifier} get_workflow_for_id(workflow_id: Integer) } -entity OwidData { +entity OwidContinent { id: Integer + continent: String + {classifier} remove_all() + {classifier} get_all_as_page(page: Integer) + {classifier} get_all() + {classifier} get_all_as_dict() + {classifier} get_by_id(other_id: Integer) + {classifier} find_by_id(other_id: Integer) +} +entity OwidCountry { id: Integer iso_code: String - continent: String location: String - date: String + stringency_index: String + population: String + population_density: String + median_age: String + aged_65_older: String + aged_70_older: String + gdp_per_capita: String + extreme_poverty: String + cardiovasc_death_rate: String + diabetes_prevalence: String + female_smokers: String + male_smokers: String + handwashing_facilities: String + hospital_beds_per_thousand: String + life_expectancy: String + human_development_index: String + {classifier} remove_all() + {classifier} get_all_as_page(page: Integer) + {classifier} get_all() + {classifier} get_all_as_dict() + {classifier} get_by_id(other_id: Integer) + {classifier} find_by_id(other_id: Integer) +} +entity OwidData { + id: Integer total_cases: String new_cases: String new_cases_smoothed: String @@ -155,36 +186,17 @@ entity OwidData { people_fully_vaccinated_per_hundred: String new_vaccinations_smoothed_per_million: String stringency_index: String - population: String - population_density: String - median_age: String - aged_65_older: String - aged_70_older: String - gdp_per_capita: String - extreme_poverty: String - cardiovasc_death_rate: String - diabetes_prevalence: String - female_smokers: String - male_smokers: String - handwashing_facilities: String - hospital_beds_per_thousand: String - life_expectancy: String - human_development_index: String - get_absolute_path() - get_relative_path() {classifier} remove_all() {classifier} get_all_as_page(page: Integer) {classifier} get_all() {classifier} get_all_as_dict() {classifier} get_by_id(other_id: Integer) {classifier} find_by_id(other_id: Integer) - {classifier} get_lektionen_for_workflow(workflow: Workflow) - {classifier} get_lektion_for_id(lektion_id: Integer) - {classifier} get_folien_for_lektion_id(lektion_id: Integer) - {classifier} get_all_verified() } -OwidData "1" *--> "*" OwidDateReported: date_reported ApplicationDateReported <|-- OwidDateReported +OwidCountry "1" *--> "*" OwidContinent: continent +OwidData "1" *--> "*" OwidCountry: country +OwidData "1" *--> "*" OwidDateReported: date_reported class OwidServiceImport { import_file() }