aboutsummaryrefslogtreecommitdiff
path: root/config/guild.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-01-25 17:06:40 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2026-01-25 17:06:40 +0100
commitaff3447a7b84c85be0020af95aecaa6c14f8b09b (patch)
tree007dfa9bcc9e528fa855358ff96a59eea0353feb /config/guild.go
parent2bf38473893b4fcd86ce7c97c04846237bb8cce4 (diff)
fix(commands): various dumb things
Diffstat (limited to 'config/guild.go')
-rw-r--r--config/guild.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/guild.go b/config/guild.go
index 756c0a4..6cdc06b 100644
--- a/config/guild.go
+++ b/config/guild.go
@@ -9,9 +9,9 @@ import (
)
type Guild struct {
- ID uint `gorm:"primarykey"`
- GuildID string `gorm:"not null;unique"`
- XpRoles []XpRole
+ ID uint `gorm:"primarykey"`
+ GuildID string `gorm:"not null;unique"`
+ XpRoles []XpRole `gorm:"foreignKey:GuildConfigID"`
DisabledChannels string
FallbackChannel string
DaysXPRemains uint `gorm:"default:90"` // 30 * 3 = 90 (three months)