- Added `RestoreMessageHandler` and route at `/account/messages/restore` - Updated `users_messages` table to support `archived_at` reset - Added restore button to archived messages template - Ensures archived messages can be moved back into inbox
33 lines
745 B
Go
33 lines
745 B
Go
package models
|
|
|
|
type Ticket struct {
|
|
Id int
|
|
UserId int
|
|
SyndicateId *int
|
|
GameType string
|
|
DrawDate string
|
|
Ball1 int
|
|
Ball2 int
|
|
Ball3 int
|
|
Ball4 int
|
|
Ball5 int
|
|
Ball6 int
|
|
Bonus1 *int
|
|
Bonus2 *int
|
|
PurchaseMethod string
|
|
PurchaseDate string
|
|
ImagePath string
|
|
Duplicate bool
|
|
MatchedMain int
|
|
MatchedBonus int
|
|
PrizeTier string
|
|
IsWinner bool
|
|
|
|
// Used only for display these are not stored in the DB, they mirror MatchTicket structure but are populated on read.
|
|
Balls []int
|
|
BonusBalls []int
|
|
MatchedDraw DrawResult
|
|
PrizeAmount float64 `db:"prize_amount"`
|
|
PrizeLabel string `db:"prize_label"`
|
|
}
|