From 77dd043b244ac776d398534a90b6b7208a5f6611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail?= Date: Wed, 6 Nov 2024 21:41:25 +0300 Subject: [PATCH] Added default null value for datetime. --- management/server/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/server/user.go b/management/server/user.go index 9fdd3a6ee..dbe6c662a 100644 --- a/management/server/user.go +++ b/management/server/user.go @@ -74,7 +74,7 @@ type User struct { // Blocked indicates whether the user is blocked. Blocked users can't use the system. Blocked bool // LastLogin is the last time the user logged in to IdP - LastLogin time.Time + LastLogin time.Time `gorm:"default:null"` // CreatedAt records the time the user was created CreatedAt time.Time