remove updatedefault for last_push, last_heartbeat

This commit is contained in:
marco 2024-04-30 12:51:36 +02:00
parent 142108529d
commit 1589a47083

View file

@ -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(),