Wie man benutzerdefinierte Felder zu Modellen hinzufügt

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