Refactor and remove sqlite and replace with MySQL
This commit is contained in:
49
internal/models/match.go
Normal file
49
internal/models/match.go
Normal file
@@ -0,0 +1,49 @@
|
||||
package models
|
||||
|
||||
type MatchTicket struct {
|
||||
ID int
|
||||
GameType string
|
||||
DrawDate string
|
||||
Balls []int
|
||||
BonusBalls []int
|
||||
}
|
||||
|
||||
type DrawResult struct {
|
||||
DrawID int
|
||||
GameType string
|
||||
DrawDate string
|
||||
Balls []int
|
||||
BonusBalls []int
|
||||
}
|
||||
|
||||
type MatchResult struct {
|
||||
MatchedMain int
|
||||
MatchedBonus int
|
||||
PrizeTier string
|
||||
IsWinner bool
|
||||
MatchedDrawID int
|
||||
|
||||
PrizeAmount float64
|
||||
PrizeLabel string
|
||||
}
|
||||
|
||||
type PrizeRule struct {
|
||||
Game string
|
||||
MainMatches int
|
||||
BonusMatches int
|
||||
Tier string
|
||||
}
|
||||
|
||||
type MatchRunStats struct {
|
||||
TicketsMatched int
|
||||
WinnersFound int
|
||||
}
|
||||
|
||||
type MatchLog struct {
|
||||
ID int
|
||||
TriggeredBy string
|
||||
RunAt string
|
||||
TicketsMatched int
|
||||
WinnersFound int
|
||||
Notes string
|
||||
}
|
||||
Reference in New Issue
Block a user