File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -80,16 +80,26 @@ export type SupabaseClientOptions<SchemaName> = {
8080 accessToken ?: ( ) => Promise < string >
8181}
8282
83+ export type GenericRelationship = {
84+ foreignKeyName : string
85+ columns : string [ ]
86+ isOneToOne ?: boolean
87+ referencedRelation : string
88+ referencedColumns : string [ ]
89+ }
90+
8391export type GenericTable = {
8492 Row : Record < string , unknown >
8593 Insert : Record < string , unknown >
8694 Update : Record < string , unknown >
95+ Relationships : GenericRelationship [ ]
8796}
8897
8998export type GenericUpdatableView = GenericTable
9099
91100export type GenericNonUpdatableView = {
92101 Row : Record < string , unknown >
102+ Relationships : GenericRelationship [ ]
93103}
94104
95105export type GenericView = GenericUpdatableView | GenericNonUpdatableView
You can’t perform that action at this time.
0 commit comments