38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
package db
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Race model describe race.
|
|
type Race struct {
|
|
Uid string `json:"uid,omitempty"`
|
|
Season string `json:"season,omitempty"`
|
|
Round string `json:"round,omitempty"`
|
|
RaceName string `json:"raceName,omitempty"`
|
|
Circuit Circuit `json:"circuit,omitempty"`
|
|
Date time.Time `json:"date,omitempty"`
|
|
URL string `json:"url,omitempty"`
|
|
Type string `json:"type,omitempty"`
|
|
}
|
|
|
|
// Circuit model describe a circuit.
|
|
type Circuit struct {
|
|
Uid string `json:"uid,omitempty"`
|
|
Name string `json:"name,omitempty"`
|
|
Location string `json:"location,omitempty"`
|
|
CircuitID string `json:"circuitID,omitempty"`
|
|
URL string `json:"url,omitempty"`
|
|
Type string `json:"type,omitempty"`
|
|
}
|
|
|
|
// Driver describes a driver.
|
|
type Driver struct {
|
|
Uid string `json:"uid,omitempty"`
|
|
FirstName string `json:"firstName,omitempty"`
|
|
LastName string `json:"lastName,omitempty"`
|
|
Nationality string `json:"nationality,omitempty"`
|
|
DoB string `json:"doB,omitempty"`
|
|
Type string `json:"type,omitempty"`
|
|
}
|