@@ -110,26 +110,6 @@ export const postgresFunctionCreateFunction = Type.Object({
110110} )
111111export type PostgresFunctionCreate = Static < typeof postgresFunctionCreateFunction >
112112
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-
133113export const postgresPolicySchema = Type . Object ( {
134114 id : Type . Integer ( ) ,
135115 schema : Type . String ( ) ,
@@ -206,7 +186,6 @@ export const postgresRoleSchema = Type.Object({
206186 password : Type . String ( ) ,
207187 valid_until : Type . Union ( [ Type . String ( ) , Type . Null ( ) ] ) ,
208188 config : Type . Union ( [ Type . String ( ) , Type . Null ( ) ] ) ,
209- grants : Type . Array ( postgresGrantSchema ) ,
210189} )
211190export type PostgresRole = Static < typeof postgresRoleSchema >
212191
@@ -247,7 +226,6 @@ export const postgresTableSchema = Type.Object({
247226 dead_rows_estimate : Type . Integer ( ) ,
248227 comment : Type . Union ( [ Type . String ( ) , Type . Null ( ) ] ) ,
249228 columns : Type . Array ( postgresColumnSchema ) ,
250- grants : Type . Array ( postgresGrantSchema ) ,
251229 policies : Type . Array ( postgresPolicySchema ) ,
252230 primary_keys : Type . Array ( postgresPrimaryKeySchema ) ,
253231 relationships : Type . Array ( postgresRelationshipSchema ) ,
0 commit comments