Let’s talk about modeling of relationships, including the dreaded many-to-many relationships, in a DDD way. 1. Types of relationships There are 4 types of relationships between tables in a relational database: One-to-many, Many-to-one, Many-to-many, One-to-one. Let’s discuss each of these types separately. 1.1. One-to-many relationships This is the most common type of relationship. To give an example…