Added default null value for datetime.

This commit is contained in:
İsmail
2024-11-06 21:23:30 +03:00
parent 1946bf28c1
commit 77b1324cf1
4 changed files with 5 additions and 5 deletions

View File

@@ -87,7 +87,7 @@ type SetupKey struct {
// UsedTimes indicates how many times the key was used
UsedTimes int
// LastUsed last time the key was used for peer registration
LastUsed time.Time
LastUsed time.Time `gorm:"default:null"`
// AutoGroups is a list of Group IDs that are auto assigned to a Peer when it uses this key to register
AutoGroups []string `gorm:"serializer:json"`
// UsageLimit indicates the number of times this key can be used to enroll a machine.