Vladimir Hodakov
c9855116da
As result of profile format change, introduced in game update yesterday we need to change profile regexp. As result of some refactoring, rarely changed data removed from database and added to sources of bot.
28 lines
691 B
Go
28 lines
691 B
Go
// i2_bot – Instinct PokememBro Bot
|
||
// Copyright (c) 2017 Vladimir "fat0troll" Hodakov
|
||
|
||
package dbmapping
|
||
|
||
import (
|
||
"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping"
|
||
"time"
|
||
)
|
||
|
||
// 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"`
|
||
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
|
||
}
|