VISIBILITY_MAP = {
    'userrelations': 'organization',
    'organization': 'id',
    'quota': ['registerer_organization', 'assigned_organizations'],
    'quotastats': ['quota__registerer_organization', 'quota__assigned_organizations'],
    'productstats': 'organization',
    'quotadistribution': ['assigner_organization', 'assigned_organization'],
    'inventoryentry': 'organization',
    'inventoryquotasaletransaction': 'seller_organization',
    'device': 'assignment__client__organization',
    'rancher': 'organization',
    'rancherorganizationlink': 'organization',  # noqa

    # 'deviceactivationcode': 'organization',
    # 'deviceversion': 'organization',
    # 'posclient': 'organization',
    # 'deviceassignment': 'organization',
    # 'stakeholders': 'organization',
    # 'stakeholdershareamount': 'registering_organization',
    # 'posfreeproducts': 'organization',
}

VISIBILITY_MAP_BY_ORG_KEY = {
    'device': {
        'PSP': 'organization',
        'CO': 'assignment__client__organization',
        'CI': 'assignment__client__organization',
        'U': 'assignment__client__organization',
        'AGC': 'assignment__client__organization',
        'EMP': 'assignment__client__organization',
    },
}
