diff options
| author | William Hergès <anhgelus.morhtuuzh@proton.me> | 2025-05-13 21:13:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-13 21:13:59 +0200 |
| commit | 8d6af4b6aa8f4902316c7f30c5229c97b0ec1a81 (patch) | |
| tree | d19607355cfa0a180d3269d78e7e2249aa3d2277 /config/guild.go | |
| parent | 9e826eee980634b82d6981a868b045f3d4b48852 (diff) | |
| parent | 75ca960199b85f3f4b491652c837d297827e40ce (diff) | |
Merge pull request #8 from anhgelus/v3
V3
Diffstat (limited to 'config/guild.go')
| -rw-r--r-- | config/guild.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/guild.go b/config/guild.go index 242cc89..fb7eaef 100644 --- a/config/guild.go +++ b/config/guild.go @@ -3,20 +3,20 @@ package config import ( "github.com/anhgelus/gokord" "github.com/anhgelus/gokord/utils" - "gorm.io/gorm" "strings" ) type GuildConfig struct { - gorm.Model - GuildID string `gorm:"not null"` + ID uint `gorm:"primarykey"` + GuildID string `gorm:"not null;unique"` XpRoles []XpRole DisabledChannels string FallbackChannel string + DaysXPRemains uint `gorm:"default:90"` // 30 * 3 = 90 (three months) } type XpRole struct { - gorm.Model + ID uint `gorm:"primarykey"` XP uint RoleID string GuildConfigID uint |
