Multi-Tenant Architecture for Storage
Hello everyone! I'm building a multi-tenant architecture for files uploaded by groups of users (organizations, teams, etc.) and individual users.
For example:
For example:
- organizations can upload their logos (and can only be updated/read by users of the organization)
- users can upload their avatars (and can only be updated by users)
- create a bucket for each organization with subfolders for each storage items category (logos, assets, etc.)
- create a bucket for each item category, and control access using policies/RLS?
- neither?