mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
Merge branch 'master' into docs/reference_docs_sidebar
This commit is contained in:
commit
2d238da4f1
2 files changed
+3
-3
No files matched your search
@@ -122,7 +122,7 @@ These should never be used in the browser or exposed to customers, but they are
|
||||
### Create a `public.users` table.
|
||||
|
||||
Even though Supabase provides an `auth.users` table, it is helpful to also create a users table in the `public` schema, which uses the same UID Primary Key as the `auth.users`.
|
||||
For security purposes, the `auth` schema is not exposed on the auto-generated API. Created a `public.users` table allows you to interact via the Supabase client -
|
||||
For security purposes, the `auth` schema is not exposed on the auto-generated API. Creating a `public.users` table allows you to interact via the Supabase client -
|
||||
especially useful for cross-table queries.
|
||||
|
||||
Pro tip: if you want to add a row to your `public.users` table every time a user signs up, you can use triggers. For example:
|
||||
|
||||
@@ -955,10 +955,10 @@ pages:
|
||||
js: |
|
||||
```js
|
||||
const { data, error } = await supabase
|
||||
.from('cities')
|
||||
.from('countries')
|
||||
.select('name, cities(name)')
|
||||
.eq('name', 'United States')
|
||||
.limit(1, 'cities')
|
||||
.limit(1, { foreignTable: 'cities' })
|
||||
```
|
||||
py: |
|
||||
```py
|
||||
|
||||
Reference in new issue
Block a user