I am creating a document model of my objects for storage in a document database (RavenDB). Modeling Im Im Models Moving Around Incidents . An incident has a source, priority, category, impact level and many other classification attributes. The RDBMS Id have an incident table with foreign keys in the priority table, category tables, Impacts tables, etc., but I donβt know how to handle this in the document database (this is my first Doc BD).
I have two types of reference data:
Simple search values: Countries , States , Sources , Languages . Attributes: they only have a name, but it is a multilingual system, so there is a name for each language. Supported operations: create, delete, rename, deactivate and merge.
Sophisticated reference: Same as Simple Lookups plus. Some of them have many fields and have their own business rules and validation rules. For example, two Priorities cannot have the same Rank value. Some of them have a more complex structure, for example Categories consist of Subcategories .
How do I simulate these documents as (or as part of)?
PS: Links to the Document Database Modeling Guide will also be evaluated.
source share