mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: add withFKs to reserved fields
This commit is contained in:
committed by
Ariel Mashraki
parent
9ff32ad60a
commit
deb368933f
@@ -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",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user