1
0
This commit is contained in:
2023-09-10 17:53:30 +09:00
parent 1124b851aa
commit a35e67d683
20 changed files with 1263 additions and 177 deletions

View File

@ -98,6 +98,12 @@ func (User) Fields() []ent.Field {
return time.Now().In(jst)
}),
field.Time("server_at").
Optional().
Default(func() time.Time {
return time.Now().In(jst)
}),
field.Time("egg_at").
Optional().
Default(func() time.Time {
@ -162,6 +168,9 @@ func (User) Fields() []ent.Field {
Default(Nextime()).
Optional(),
field.Int("room").
Optional(),
}
}