diff --git a/server/model/user.go b/server/model/user.go index 5e256dc..0d8eb14 100644 --- a/server/model/user.go +++ b/server/model/user.go @@ -19,7 +19,7 @@ type User struct { CommentsCount int Resources []Resource `gorm:"foreignKey:UserID"` Bio string - UnreadNotificationsCount uint + UnreadNotificationsCount uint `gorm:"not null;default:0"` } type UserView struct {