mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-16 15:51:14 +00:00
fix: enforce not null constraint and default value for UnreadNotificationsCount
This commit is contained in:
@@ -19,7 +19,7 @@ type User struct {
|
|||||||
CommentsCount int
|
CommentsCount int
|
||||||
Resources []Resource `gorm:"foreignKey:UserID"`
|
Resources []Resource `gorm:"foreignKey:UserID"`
|
||||||
Bio string
|
Bio string
|
||||||
UnreadNotificationsCount uint
|
UnreadNotificationsCount uint `gorm:"not null;default:0"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserView struct {
|
type UserView struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user