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

        it might be `None` if schema has not been set for this entity.

        :rtype: str
        """
    schema = None
    if cls.__table_args__ is not None:
        schema = cls.__table_args__.get('schema', None)
    return schema
