File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -150,15 +150,20 @@ export interface Database {
150150 }
151151 Relationships: [
152152 ${ relationships
153- . filter ( ( relationship ) => relationship . schema === table . schema && relationship . relation === table . name )
154- . map ( ( relationship ) => `{
153+ . filter (
154+ ( relationship ) =>
155+ relationship . schema === table . schema &&
156+ relationship . relation === table . name
157+ )
158+ . map (
159+ ( relationship ) => `{
155160 foreignKeyName: ${ JSON . stringify ( relationship . foreign_key_name ) }
156161 columns: ${ JSON . stringify ( relationship . columns ) }
157162 referencedSchema: ${ JSON . stringify ( relationship . referenced_schema ) }
158163 referencedRelation: ${ JSON . stringify ( relationship . referenced_relation ) }
159164 referencedColumns: ${ JSON . stringify ( relationship . referenced_columns ) }
160- }` )
161- }
165+ }`
166+ ) }
162167 ]
163168 }`
164169 )
You can’t perform that action at this time.
0 commit comments