Add tournament reports storage and karma changing function
This commit is contained in:
@@ -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"`
|
||||
|
17
lib/dbmapping/tournament_reports.go
Normal file
17
lib/dbmapping/tournament_reports.go
Normal 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"`
|
||||
}
|
Reference in New Issue
Block a user