How to correctly set typescript for nested tables - Supabase