Skip to content

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

441 B
Raw Blame
export const COLUMN_PRIVILEGE_TYPES = ['SELECT', 'INSERT', 'UPDATE'] as const
export type ColumnPrivilegeType = (typeof COLUMN_PRIVILEGE_TYPES)[number]

export const TABLE_PRIVILEGE_TYPES = ['DELETE'] as const
export type TablePrivilegeType = (typeof TABLE_PRIVILEGE_TYPES)[number]

export const ALL_PRIVILEGE_TYPES = [...COLUMN_PRIVILEGE_TYPES, ...TABLE_PRIVILEGE_TYPES]
export type PrivilegeType = ColumnPrivilegeType | TablePrivilegeType