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

@@ -40,7 +40,7 @@ type Peer struct {
InactivityExpirationEnabled bool
// LastLogin the time when peer performed last login operation
LastLogin time.Time
LastLogin time.Time `gorm:"default:null"`
// CreatedAt records the time the peer was created
CreatedAt time.Time
// Indicate ephemeral peer attribute
@@ -51,7 +51,7 @@ type Peer struct {
type PeerStatus struct { //nolint:revive
// LastSeen is the last time peer was connected to the management service
LastSeen time.Time
LastSeen time.Time `gorm:"default:null"`
// Connected indicates whether peer is connected to the management service or not
Connected bool
// LoginExpired