Generate record for record types