aboutsummaryrefslogtreecommitdiff
path: root/backend/models/models.go
blob: 2be876533faa720b42913ef319022e9ec54d0c7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package models

import "time"

type User struct {
	SteamID     string
	Username    string
	AvatarLink  string
	CountryCode string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	UserType    int16
}

func (user *User) TypeToString() []string {
	var list []string
	switch user.UserType {
	case 0:
		list = append(list, "Normal")
	}
	if len(list) == 0 {
		list = append(list, "Unknown")
	}
	return list
}