Tenants, Gateways public and private

Hi everyone,
supposing in an area there are communities, consumers and farms, and requirements for devices are like below:

  • Some Devices of Consumer 1 can use only a private gateway (ie installed in his house) but Consumer 1 can access to public gateways owned by communities for example by using devices to track their animals.
  • Devices of Communities are used for public services and gateways that they own can be used to garantee join consumer’s devices
  • Farms use their own gateways and devices that join only thanks to their gateways. Those devices cannot join public gateways

All of that above how can be traslate on chirpstack with tenants e configurations?

Thank you,