Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在其中一列中自动添加插入行的作者。我正在使用 postgREST(使用 Supabase 云服务),我不希望用户添加他们想要的任何人作为作者。有没有办法自动添加发布数据的用户的用户 ID?谢谢!
您可以通过表格编辑器添加它或auth.uid()在您的 SQL 函数中使用它。
auth.uid()
该列的默认值应为: