change data model name constraint to views