hdkv
/
i2_bot
Archived
1
Fork 0
This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues/pull-requests.
i2_bot/lib/dbmapping/players.go

30 lines
727 B
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// i2_bot Instinct PokememBro Bot
// Copyright (c) 2017 Vladimir "fat0troll" Hodakov
package dbmapping
import (
"time"
"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping"
)
// Player is a struct, which represents `players` table item in databse.
type Player struct {
ID int `db:"id"`
TelegramID int `db:"telegram_id"`
LeagueID int `db:"league_id"`
Status string `db:"status"`
Karma int `db:"karma"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
// PlayerProfile is a struch which handles all user information
type PlayerProfile struct {
Player Player
Profile Profile
League datamapping.League
HaveProfile bool
}