Dynamically create types for tables.