From 207a8e6ab44b10924dfcedbc6a2a5cebe9b35a14 Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Wed, 22 May 2024 14:28:30 +0000 Subject: [PATCH] fix(pkg/models.User): set default reward --- pkg/models/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"` }