@@ -61,6 +61,7 @@ test('typegen', async () => {
61
61
{
62
62
foreignKeyName: "memes_category_fkey"
63
63
columns: ["category"]
64
+ isOneToOne: false
64
65
referencedRelation: "category"
65
66
referencedColumns: ["id"]
66
67
}
@@ -87,12 +88,44 @@ test('typegen', async () => {
87
88
{
88
89
foreignKeyName: "todos_user-id_fkey"
89
90
columns: ["user-id"]
91
+ isOneToOne: false
90
92
referencedRelation: "users"
91
93
referencedColumns: ["id"]
92
94
},
93
95
{
94
96
foreignKeyName: "todos_user-id_fkey"
95
97
columns: ["user-id"]
98
+ isOneToOne: false
99
+ referencedRelation: "users_view"
100
+ referencedColumns: ["id"]
101
+ }
102
+ ]
103
+ }
104
+ user_details: {
105
+ Row: {
106
+ details: string | null
107
+ user_id: number
108
+ }
109
+ Insert: {
110
+ details?: string | null
111
+ user_id: number
112
+ }
113
+ Update: {
114
+ details?: string | null
115
+ user_id?: number
116
+ }
117
+ Relationships: [
118
+ {
119
+ foreignKeyName: "user_details_user_id_fkey"
120
+ columns: ["user_id"]
121
+ isOneToOne: true
122
+ referencedRelation: "users"
123
+ referencedColumns: ["id"]
124
+ },
125
+ {
126
+ foreignKeyName: "user_details_user_id_fkey"
127
+ columns: ["user_id"]
128
+ isOneToOne: true
96
129
referencedRelation: "users_view"
97
130
referencedColumns: ["id"]
98
131
}
@@ -149,12 +182,14 @@ test('typegen', async () => {
149
182
{
150
183
foreignKeyName: "todos_user-id_fkey"
151
184
columns: ["user-id"]
185
+ isOneToOne: false
152
186
referencedRelation: "users"
153
187
referencedColumns: ["id"]
154
188
},
155
189
{
156
190
foreignKeyName: "todos_user-id_fkey"
157
191
columns: ["user-id"]
192
+ isOneToOne: false
158
193
referencedRelation: "users_view"
159
194
referencedColumns: ["id"]
160
195
}
@@ -180,12 +215,14 @@ test('typegen', async () => {
180
215
{
181
216
foreignKeyName: "todos_user-id_fkey"
182
217
columns: ["user-id"]
218
+ isOneToOne: false
183
219
referencedRelation: "users"
184
220
referencedColumns: ["id"]
185
221
},
186
222
{
187
223
foreignKeyName: "todos_user-id_fkey"
188
224
columns: ["user-id"]
225
+ isOneToOne: false
189
226
referencedRelation: "users_view"
190
227
referencedColumns: ["id"]
191
228
}
0 commit comments