DatabaseModel for a type definition
constructModel had some issues.