Adds an internal data model used for mapping the backend.
I know we thought it might be best to keep using the proto data model but it simply isn't sustainable when we can't easily adjust previously stored data to the new model in CosmosDB. This will hopefully be the last change which will require a database reset.
Now, the protos are only used in the CovidSafe.API project while the backend data model stays in CovidSafe.Entities and interactions occur in CovidSafe.DAL; the proto types for each version must contain a mapping to the internal data model. Any fields updated or removed can be adjusted in these AutoMapper mapping profiles.
Removes unused RegionProperty type from data model
This was a first attempt at utilizing the Point type from CosmosDB but ultimately it wasn't necessary for this use case. It's just taking up extra data and since we're already introducing breaking changes in this release, it's a good opportunity to discard.
BREAKING CHANGES
CovidSafe.API
project while the backend data model stays inCovidSafe.Entities
and interactions occur inCovidSafe.DAL
; the proto types for each version must contain a mapping to the internal data model. Any fields updated or removed can be adjusted in theseAutoMapper
mapping profiles.RegionProperty
type from data modelPoint
type from CosmosDB but ultimately it wasn't necessary for this use case. It's just taking up extra data and since we're already introducing breaking changes in this release, it's a good opportunity to discard.