mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 10:42:57 +00:00
dev day #79
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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"`
|
||||
AvatarURL string `json:"avatar_url" gorm:"type:varchar(500)"`
|
||||
AnimatedAvatarURL string `json:"animated_avatar_url" gorm:"type:varchar(500)"`
|
||||
}
|
||||
|
||||
func (UserProfile) TableName() string { return "user_profiles" }
|
||||
Reference in New Issue
Block a user