tablestruct creates mappings between Go structs and database tables.