mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
17 lines
769 B
Go
17 lines
769 B
Go
package models
|
|
|
|
type UserProfile struct {
|
|
BaseModel
|
|
UserID uint `json:"user_id" gorm:"uniqueIndex;not null"`
|
|
Points int64 `json:"points" gorm:"default:0;index"`
|
|
Level int `json:"level" gorm:"default:1"`
|
|
XP int64 `json:"xp" gorm:"default:0"`
|
|
Username string `json:"username" gorm:"size:32;uniqueIndex"`
|
|
AvatarURL string `json:"avatar_url" gorm:"type:varchar(500)"`
|
|
AnimatedAvatarURL string `json:"animated_avatar_url" gorm:"type:varchar(500)"`
|
|
AvatarUploadUnlocked bool `json:"avatar_upload_unlocked" gorm:"default:false"`
|
|
AnimatedAvatarUploadUnlocked bool `json:"animated_avatar_upload_unlocked" gorm:"default:false"`
|
|
}
|
|
|
|
func (UserProfile) TableName() string { return "user_profiles" }
|