© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
drewbie

Relating Storage Objects to Public Schema Tables

I am looking to set up a relation between a table in my public schema with objects in a bucket within Supabase storage. I found some folks asking about this here https://github.com/supabase/supabase/discussions/3541 but wanted to see if anyone had any new insights into this.

I have a products table that I wanted to have a has many relation with images to, which would allow me to join products with the product_images (or whatever associated table is set up). The unknown part for me is how can I have a true association where added and deleted storage objects are reflected in the association with their product? I know that I can just store the image path(s) on the product row itself but I'm looking for a set up that has a little more reliability on if the images actually exist. Otherwise it becomes a game of making sure that I set up another product table operation after each storage object insert/delete.

Anyone's insight into how they might solve this is much appreciated. I'd really just like to keep this association as simple and reliable as possible.

Thanks!
GitHub
How to use the storage db relation. · Discussion #3541 · supabase/s...
I've setup my database to use a relation field to a file upload as follows: But I'm having trouble creating the relation, I assume i need to update the record to store the file uuid...
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

storage.objects
SupabaseSSupabase / help-and-questions
4mo ago
get public URL of object in storage.objects
SupabaseSSupabase / help-and-questions
4y ago
Privileges revoked from all storage tables after pull of storage schema
SupabaseSSupabase / help-and-questions
6mo ago
Storage public URL
SupabaseSSupabase / help-and-questions
4y ago