entc/gen: extract fk column from edge (#919)

This commit is contained in:
Ariel Mashraki
2020-11-05 12:07:45 +02:00
committed by GitHub
parent 3fdff6b16f
commit 3f1545f0a9
2 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ in the LICENSE file in the root directory of this source tree.
// ForeignKeys holds the SQL foreign-keys that are owned by the {{ $.Name }} type.
var ForeignKeys = []string{
{{- range $fk := . }}
"{{ $fk.Field.Name }}",
"{{ $fk.Edge.Rel.Column }}",
{{- end }}
}
{{ end }}