Archived
1

Add tournament reports storage and karma changing function

This commit is contained in:
2018-05-05 10:33:40 +04:00
parent 0a5361ee09
commit 07c24b8822
10 changed files with 187 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ import (
"time"
)
// Alarm is a struct, which represents `alarms` table item in databse.
// Alarm is a struct, which represents `alarms` table item in database.
type Alarm struct {
ID int `db:"id"`
PlayerID int `db:"player_id"`

View File

@@ -0,0 +1,17 @@
// i2_bot Instinct PokememBro Bot
// Copyright (c) 2017-2018 Vladimir "fat0troll" Hodakov
package dbmapping
import (
"time"
)
// TournamentReport is a struct, which represents `tournament_reports` table item in database.
type TournamentReport struct {
ID int `db:"id"`
PlayerID int `db:"player_id"`
TournamentNumber int `db:"tournament_number"`
Target string `db:"target"`
CreatedAt time.Time `db:"created_at"`
}