Safe RLS policy template
rls_policy_templateGenerate Supabase RLS policy examples for select/insert/update/delete using auth.uid(), with owner-based defaults and caveats; avoids using(true) on private data.
Instructions
Return example Supabase RLS policies (select/insert/update/delete using auth.uid()) for a common table shape, with caveats. Never uses using (true) on private data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_kind | Yes | The shape of the table. | |
| owner_column | No | Column holding the owner's user id. Defaults: profiles=id, posts/orders=user_id, messages=sender_id. Ignored for files. |