mirror of
https://github.com/ent/ent.git
synced 2026-05-28 09:49:08 +03:00
schema/field: add option to set the Go identifier for enums (#635)
This commit is contained in:
@@ -66,6 +66,8 @@ func init() {
|
||||
file.DefaultSize = fileDescSize.Default.(int)
|
||||
// file.SizeValidator is a validator for the "size" field. It is called by the builders before save.
|
||||
file.SizeValidator = fileDescSize.Validators[0].(func(int) error)
|
||||
filetypeFields := schema.FileType{}.Fields()
|
||||
_ = filetypeFields
|
||||
groupFields := schema.Group{}.Fields()
|
||||
_ = groupFields
|
||||
// groupDescActive is the schema descriptor for active field.
|
||||
|
||||
Reference in New Issue
Block a user