remove updatedefault for last_push, last_heartbeat
This commit is contained in:
parent
142108529d
commit
1589a47083
1 changed files with 2 additions and 2 deletions
|
@ -23,10 +23,10 @@ func (Machine) Fields() []ent.Field {
|
|||
UpdateDefault(types.UtcNow),
|
||||
field.Time("last_push").
|
||||
Default(types.UtcNow).
|
||||
UpdateDefault(types.UtcNow).Nillable().Optional(),
|
||||
Nillable().Optional(),
|
||||
field.Time("last_heartbeat").
|
||||
Default(types.UtcNow).
|
||||
UpdateDefault(types.UtcNow).Nillable().Optional(),
|
||||
Nillable().Optional(),
|
||||
field.String("machineId").
|
||||
Unique().
|
||||
Immutable(),
|
||||
|
|
Loading…
Reference in a new issue