diff --git a/pkg/models/user.go b/pkg/models/user.go index 9087084..3451560 100644 --- a/pkg/models/user.go +++ b/pkg/models/user.go @@ -46,7 +46,7 @@ type User struct { IsCommunityAdmin bool `gorm:"default:false"` InvitationCode string InvitedByUserID uint - Reward int + Reward int `gorm:"default:0"` HasPostedComments bool `gorm:"default:false"` }