add egg_at
This commit is contained in:
@ -98,6 +98,12 @@ func (User) Fields() []ent.Field {
|
||||
return time.Now().In(jst)
|
||||
}),
|
||||
|
||||
field.Time("egg_at").
|
||||
Optional().
|
||||
Default(func() time.Time {
|
||||
return time.Now().In(jst)
|
||||
}),
|
||||
|
||||
field.Int("luck").
|
||||
Optional(),
|
||||
|
||||
|
Reference in New Issue
Block a user