I am creating a database to store data related to costs. The cost information can be very varied and I won't be able to fully determine all possible columns currently.
An example piece of data might be the cost of a F-15 jet. So taking this from Wikipedia:
$27.9 million in 1998 dollars.
I will also need to store contextual information, for example:
- Model Variant
The model must also be able to store completely different information such as price of a pressurised water reactor used in a nuclear power plant. The cost could be:
€200 million in 2011 euros.
The contextual information for this would be things like:
- Max Operating Temperature
- Country of Origin
From a database design point of view the cost information seems quite easy to capture, all costs will have:
- Economic Conditions
The contextual information however can be anything and as such it's hard to design a schema that will easily capture all the relevant data.
The purpose of having this data is to use it to estimate future costs. So all contextual information should be searchable, the user might need all costs from the database that are related to aircrafts or all information on the cost of valves under 100Kg in weight.
So my question is, what is the best way of storing this data? Will I just have to try and create a schema as detailed as possible, will something like Entity-Attribute-Value work best or maybe a NoSQL document store?
Thanks for your help.