You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: gql_generator_base.rb
    path of file: ./repos/graphql-rails-generators/lib/generators/gql
    
    the code of the file until where you have to start completion: require 'rails/generators/base'

module Gql
  module GqlGeneratorBase
    protected

    # Generate a namedspaced class name with the mutation prefix
    def prefixed_class_name(prefix)
      (class_path + ["#{prefix}_#{file_name}"]).map!(&:camelize).join("::")
    end

    def type_map
      {
        integer: 'Int',
        string: 'String',
       
    
    def map_model_types(model_name)
      klass = model_name.constantize
      associations = klass.reflect_on_all_associations(:belongs_to)
      bt_columns = associations.map(&:foreign_key)

      klass.columns
        .reject { |col| bt_columns.include?(col.name) }
        .reject { |col| type_map[col.type].nil? }
        .map do |col|
          {
            name: col.name,
            null: col.null,
            gql_type: klass.primary_key == col.name ? 'GraphQL::Types::ID' : type_map[col.type]
          }
        end
    end