✨ Auto handle increment of popularity on realm member changes
This commit is contained in:
@ -6,6 +6,12 @@ import (
|
||||
"gorm.io/datatypes"
|
||||
)
|
||||
|
||||
const (
|
||||
RealmPopularityMemberFactor = 5
|
||||
RealmPopularityPostFactor = 10
|
||||
RealmPopularityChatFactor = 2
|
||||
)
|
||||
|
||||
type Realm struct {
|
||||
BaseModel
|
||||
|
||||
|
Reference in New Issue
Block a user