How to get table type(name) for structure name?