aboutsummaryrefslogtreecommitdiff
path: root/config/guild.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/guild.go')
-rw-r--r--config/guild.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/guild.go b/config/guild.go
index 0971837..5e41465 100644
--- a/config/guild.go
+++ b/config/guild.go
@@ -3,12 +3,11 @@ package config
import (
"github.com/anhgelus/gokord"
"github.com/anhgelus/gokord/utils"
- "gorm.io/gorm"
"strings"
)
type GuildConfig struct {
- gorm.Model
+ ID uint `gorm:"primarykey"`
GuildID string `gorm:"not null;unique"`
XpRoles []XpRole
DisabledChannels string
@@ -16,7 +15,7 @@ type GuildConfig struct {
}
type XpRole struct {
- gorm.Model
+ ID uint `gorm:"primarykey"`
XP uint
RoleID string
GuildConfigID uint