Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add auth.uid for uuid suggestions.

Ivan Vasilovc8ddd1d1c258
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.constants.ts b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.constants.ts
index 407f2798911..056a8ac16bd 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.constants.ts
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.constants.ts
@@ -31,6 +31,12 @@ const defaultTextBasedValues: Suggestion[] = [
// using meta-store's extensions to generate this partially on top of vanilla expressions
export const typeExpressionSuggestions: Dictionary<Suggestion[]> = {
uuid: [
+ {
+ name: 'auth.uid()',
+ value: 'auth.uid()',
+ description:
+ 'Extracts the unique user ID when rows are added or updated through serverless API',
+ },
{
name: 'gen_random_uuid()',
value: 'gen_random_uuid()',