Added default null value for datetime.

This commit is contained in:
İsmail
2024-11-06 21:41:25 +03:00
parent 77b1324cf1
commit 77dd043b24

View File

@@ -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