A question about data types in the Anchor Model database design. The question assume separation of anchor model implementation from the anchor model itself.
In the Anchor Model xml we have following kind information related to data types:
dataRange="varchar(42)"
identity="int"
timeRange="datetime"
They are stored in Anchor Model entities (anchor/attribute) xml nodes.
Example
<attribute mnemonic="NAM" descriptor="Name" timeRange="datetime" dataRange="varchar(42)">
As of my understanding the data types does not affect Anchor Model as is, they affect its implementation to particular database vendor. Even time granularity on historized attributes has nothing to do with the model.
So the question is:
- Wouldn't be more accurate to store data types information in metadata xml node? as they are not part of the model
- Or am I missing something and data types have to be part of the Anchor Model? why?