You can apply the same logic used here
For more info, check out how to make Supabase Views, it’s fairly simple.