We are introducing this Data modeling layer (DML) in Medusa 2.0, which offers a highly opinionated API for defining models.
For a better perspective, here's a before -> after comparison of defining the same model with and without DML.
I have shared this once, but I am gonna share it again because I am that excited about it.
In Medusa 2.0, we will introduce a data modeling language to define the data in your application.
Initially, this replaces DB models, but we have big plans for future features.