@classmethod
def table_fullname(cls):
    """
        gets the table fullname that this entity represents in database.

        fullname is `schema.table_name` if schema is available, otherwise it
        defaults to `table_name`.

        :rtype: str
        """
    schema = cls.table_schema()
    name = cls.table_name()
    if schema is not None:
        return '{schema}.{name}'.format(schema=schema, name=name)
    else:
        return name
