diff options
| author | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-13 13:15:59 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-13 13:15:59 +0200 |
| commit | 6b6c775ab3af659e26f0c79dbabd86d88d2451d5 (patch) | |
| tree | 719ce16b64f8f37e844f69cf9c1b9ef9bb6a0cb6 /config | |
| parent | d38c57b83009bf0a8b22bede7ee786d6f54fc66a (diff) | |
refactor(gorm): remove ...At fields from model
Diffstat (limited to 'config')
| -rw-r--r-- | config/guild.go | 5 |
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 |
