Privileges.constants.ts8 lines · main
1export const COLUMN_PRIVILEGE_TYPES = ['SELECT', 'INSERT', 'UPDATE'] as const
2export type ColumnPrivilegeType = (typeof COLUMN_PRIVILEGE_TYPES)[number]
3
4export const TABLE_PRIVILEGE_TYPES = ['DELETE'] as const
5export type TablePrivilegeType = (typeof TABLE_PRIVILEGE_TYPES)[number]
6
7export const ALL_PRIVILEGE_TYPES = [...COLUMN_PRIVILEGE_TYPES, ...TABLE_PRIVILEGE_TYPES]
8export type PrivilegeType = ColumnPrivilegeType | TablePrivilegeType