Cómo agregar campos personalizados a modelos

Is there a way to ensure on server side that custom fields are mandatory?