added players

This commit is contained in:
2026-02-16 21:31:02 +11:00
parent fbea6569cf
commit 317fb9a070
17 changed files with 168 additions and 39 deletions

View File

@@ -20,7 +20,8 @@ type User struct {
CreatedAt int64 `bun:"created_at" json:"created_at"`
DiscordID string `bun:"discord_id,unique" json:"discord_id"`
Roles []*Role `bun:"m2m:user_roles,join:User=Role" json:"-"`
Roles []*Role `bun:"m2m:user_roles,join:User=Role" json:"-"`
Player *Player `bun:"rel:has-one,join:id=user_id"`
}
func (u *User) GetID() int {