Documentation suggests that we should avoid having to defined schema in the models to reduce the burden on managing schema in migrations and also in the models.
But the examples listed seem to always have schema defined in the model also.
-
What is best practice?
-
If I am defining schema in the model to help with typscript, then how should I be using "?" or "!" to represent nullable fields?