Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’2y agoβ€’
17 replies
Bear

Storage only or storage + table?

I'm trying to decide how I should structure my storage usage in my application.

Let's say users can create "items" and those items can have files uploaded to them.

Should I have a table that is "item_files" which contains a reference + metadata to the uploaded image in storage.
Or should I structure my storage paths in a way that allows for listing the items? Eg /uploads/{itemId}/image.png

Is there a best practice approach? To me it feels safer to have a files table as that means I can control things like metadata (uploader, tags, etc) easier. It also means that you can fetch the associated files for an item, but also display all the files that a user has ever uploaded.

Just not sure if there's pros/cons for each approach so thought I'd ask the experts!
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Storage or folder
SupabaseSSupabase / help-and-questions
4mo ago
Need advice with storage and table
SupabaseSSupabase / help-and-questions
3y ago
Sync Supabase table and storage IDs
SupabaseSSupabase / help-and-questions
4y ago
Insert or delete only one value from json array in table.
SupabaseSSupabase / help-and-questions
4y ago