entc/gen: add withFKs to reserved fields

This commit is contained in:
Ariel Mashraki
2020-12-09 17:31:24 +02:00
committed by Ariel Mashraki
parent 9ff32ad60a
commit deb368933f

View File

@@ -763,7 +763,9 @@ func (f Field) EnumName(enum string) string {
}
// Validator returns the validator name.
func (f Field) Validator() string { return pascal(f.Name) + "Validator" }
func (f Field) Validator() string {
return pascal(f.Name) + "Validator"
}
// EntSQL returns the EntSQL annotation if exists.
func (f Field) EntSQL() *entsql.Annotation {
@@ -1334,6 +1336,7 @@ var (
"predicates",
"typ",
"unique",
"withFKs",
)
)