refactor(gorm): remove ...At fields from model
This commit is contained in:
parent
d38c57b830
commit
6b6c775ab3
5 changed files with 29 additions and 99 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue