aboutsummaryrefslogtreecommitdiff
path: root/config/guild.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/guild.go')
-rw-r--r--config/guild.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/guild.go b/config/guild.go
index 242cc89..fb7eaef 100644
--- a/config/guild.go
+++ b/config/guild.go
@@ -3,20 +3,20 @@ package config
import (
"github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/utils"
- "gorm.io/gorm"
"strings"
)
type GuildConfig struct {
- gorm.Model
- GuildID string `gorm:"not null"`
+ ID uint `gorm:"primarykey"`
+ GuildID string `gorm:"not null;unique"`
XpRoles []XpRole
DisabledChannels string
FallbackChannel string
+ DaysXPRemains uint `gorm:"default:90"` // 30 * 3 = 90 (three months)
}
type XpRole struct {
- gorm.Model
+ ID uint `gorm:"primarykey"`
XP uint
RoleID string
GuildConfigID uint