@@ -110,26 +110,6 @@ export const postgresFunctionCreateFunction = Type.Object({
110
110
} )
111
111
export type PostgresFunctionCreate = Static < typeof postgresFunctionCreateFunction >
112
112
113
- export const postgresGrantSchema = Type . Object ( {
114
- table_id : Type . Integer ( ) ,
115
- grantor : Type . String ( ) ,
116
- grantee : Type . String ( ) ,
117
- schema : Type . String ( ) ,
118
- table_name : Type . String ( ) ,
119
- privilege_type : Type . Union ( [
120
- Type . Literal ( 'INSERT' ) ,
121
- Type . Literal ( 'SELECT' ) ,
122
- Type . Literal ( 'UPDATE' ) ,
123
- Type . Literal ( 'DELETE' ) ,
124
- Type . Literal ( 'TRUNCATE' ) ,
125
- Type . Literal ( 'REFERENCES' ) ,
126
- Type . Literal ( 'TRIGGER' ) ,
127
- ] ) ,
128
- is_grantable : Type . Boolean ( ) ,
129
- with_hierarchy : Type . Boolean ( ) ,
130
- } )
131
- export type PostgresGrant = Static < typeof postgresGrantSchema >
132
-
133
113
export const postgresPolicySchema = Type . Object ( {
134
114
id : Type . Integer ( ) ,
135
115
schema : Type . String ( ) ,
@@ -206,7 +186,6 @@ export const postgresRoleSchema = Type.Object({
206
186
password : Type . String ( ) ,
207
187
valid_until : Type . Union ( [ Type . String ( ) , Type . Null ( ) ] ) ,
208
188
config : Type . Union ( [ Type . String ( ) , Type . Null ( ) ] ) ,
209
- grants : Type . Array ( postgresGrantSchema ) ,
210
189
} )
211
190
export type PostgresRole = Static < typeof postgresRoleSchema >
212
191
@@ -247,7 +226,6 @@ export const postgresTableSchema = Type.Object({
247
226
dead_rows_estimate : Type . Integer ( ) ,
248
227
comment : Type . Union ( [ Type . String ( ) , Type . Null ( ) ] ) ,
249
228
columns : Type . Array ( postgresColumnSchema ) ,
250
- grants : Type . Array ( postgresGrantSchema ) ,
251
229
policies : Type . Array ( postgresPolicySchema ) ,
252
230
primary_keys : Type . Array ( postgresPrimaryKeySchema ) ,
253
231
relationships : Type . Array ( postgresRelationshipSchema ) ,
0 commit comments