We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41c9bcc commit 59d1898Copy full SHA for 59d1898
src/lib/types.ts
@@ -80,16 +80,26 @@ export type SupabaseClientOptions<SchemaName> = {
80
accessToken?: () => Promise<string>
81
}
82
83
+export type GenericRelationship = {
84
+ foreignKeyName: string
85
+ columns: string[]
86
+ isOneToOne?: boolean
87
+ referencedRelation: string
88
+ referencedColumns: string[]
89
+}
90
+
91
export type GenericTable = {
92
Row: Record<string, unknown>
93
Insert: Record<string, unknown>
94
Update: Record<string, unknown>
95
+ Relationships: GenericRelationship[]
96
97
98
export type GenericUpdatableView = GenericTable
99
100
export type GenericNonUpdatableView = {
101
102
103
104
105
export type GenericView = GenericUpdatableView | GenericNonUpdatableView
0 commit comments