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),
|
UpdateDefault(types.UtcNow),
|
||||||
field.Time("last_push").
|
field.Time("last_push").
|
||||||
Default(types.UtcNow).
|
Default(types.UtcNow).
|
||||||
UpdateDefault(types.UtcNow).Nillable().Optional(),
|
Nillable().Optional(),
|
||||||
field.Time("last_heartbeat").
|
field.Time("last_heartbeat").
|
||||||
Default(types.UtcNow).
|
Default(types.UtcNow).
|
||||||
UpdateDefault(types.UtcNow).Nillable().Optional(),
|
Nillable().Optional(),
|
||||||
field.String("machineId").
|
field.String("machineId").
|
||||||
Unique().
|
Unique().
|
||||||
Immutable(),
|
Immutable(),
|
||||||
|
|
Loading…
Reference in a new issue