added players
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user