def get_heroku_connect_table_name(model_cls):
    """
    Return the table name (without schema) associated with a model class.

    Args:
        model_cls: A connected model class object

    Raises:
        LookupError: if no table name is associated with the given class

    """
    # strip schema and quotes from _meta.db_table
    # https://www.postgresql.org/docs/9.6/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS
    return model_cls._meta.db_table.rsplit('.', 1)[-1].strip('"')