correct and inline require in model-schema