Generate functions to validate every table/type