We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 296abdf commit 3db6beaCopy full SHA for 3db6bea
src/server/templates/typescript.ts
@@ -155,6 +155,9 @@ export interface Database {
155
relationship.schema === table.schema &&
156
relationship.relation === table.name
157
)
158
+ .sort(({ foreign_key_name: a }, { foreign_key_name: b }) =>
159
+ a.localeCompare(b)
160
+ )
161
.map(
162
(relationship) => `{
163
foreignKeyName: ${JSON.stringify(relationship.foreign_key_name)}
0 commit comments