def METHOD_NAME(pg_table: sa.Table):
    """Convert a model intended for PostGreSQL to one compatible with SQLite"""
    new = pg_table.to_metadata(SqliteBase.metadata)
    for column in new.columns:
        if isinstance(column.type, UUID):
            column.type = sa.String(32)
        elif isinstance(column.type, sa.DateTime):
            column.type = TZDateTime()
        elif isinstance(column.type, JSONB):
            column.type = JSON()
            column.default = ColumnDefault(dict)
    # remove any postgresql specific indexes, e.g. varchar_pattern_ops
    new.indexes.difference_update([idx for idx in new.indexes if idx.dialect_kwargs])
    return new