Let's say we have a legacy database. We find out the Orders
and OrderLines
tables contain each 100 columns. Some of them cannot be null, they are not and will not be part of our business logic but they need to be initialized. Also there will be another set of columns we will not use either.
Now we want to start building a domain model on the top of that. We realize many of these columns or attributes do not belong to our ubiquitous language. Which would be the correct to model the requirements and at the same time satisfy the legacy database ones?