refactor(gorm): remove ...At fields from model

This commit is contained in:
Anhgelus Morhtuuzh 2025-05-13 13:15:59 +02:00
parent d38c57b830
commit 6b6c775ab3
Signed by: anhgelus
GPG key ID: CAD341EFA92DDDE5
5 changed files with 29 additions and 99 deletions

View file

@ -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