26 lines
724 B
Go
26 lines
724 B
Go
package main
|
|
|
|
type Race struct {
|
|
ID int64 `json:"id"`
|
|
TorrentName string `json:"torrentname"`
|
|
Category string `json:"category"`
|
|
Indexer string `json:"indexer"`
|
|
Type string `json:"type"`
|
|
Title string `json:"title"`
|
|
Season string `json:"season"`
|
|
Episode string `json:"episode"`
|
|
Year string `json:"year"`
|
|
Resolution string `json:"resolution"`
|
|
Source string `json:"source"`
|
|
TorrentURL string `json:"torrenturl"`
|
|
TorrentFile string `json:"torrentfile"`
|
|
NFOFile string `json:"nfofile"`
|
|
OriginalPath string `json:"originalpath"`
|
|
Won bool `json:"won"`
|
|
PreRace bool `json:"prerace"`
|
|
}
|
|
|
|
func NewRace() *Race {
|
|
return &Race{}
|
|
}
|