def METHOD_NAME(cls):
    """Check that the table name is defined.
    Returns
    -------
    List[checks.CheckMessage]
        A list of the check messages representing problems found on the model.
    """
    errors = []
    model_full_name: str = f"{cls._meta.app_label}.{cls._meta.object_name}"
    try:
        cls._meta.original_attrs["db_table"]
    except KeyError:
        errors.append(
            checks.Error(
                f"The model '{model_full_name}' must define the 'db_table' attribute on its "
                "'Meta' class. It must not be prefixed with the name of the "
                "app or the project.",
                hint=f"Add 'db_table = \"{cls._meta.model_name}\"' to the 'Meta' class of the "
                "model '{model_full_name}'",
                obj=cls,
                id="marsha.models.E007",
            )
        )
    return errors