diff options
Diffstat (limited to 'backend/models')
| -rw-r--r-- | backend/models/models.go | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/backend/models/models.go b/backend/models/models.go index e21ba6a..f124db5 100644 --- a/backend/models/models.go +++ b/backend/models/models.go | |||
| @@ -25,7 +25,7 @@ type User struct { | |||
| 25 | CountryCode string `json:"country_code"` | 25 | CountryCode string `json:"country_code"` |
| 26 | CreatedAt time.Time `json:"created_at"` | 26 | CreatedAt time.Time `json:"created_at"` |
| 27 | UpdatedAt time.Time `json:"updated_at"` | 27 | UpdatedAt time.Time `json:"updated_at"` |
| 28 | Titles []string `json:"titles"` | 28 | Titles []Title `json:"titles"` |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | type UserShort struct { | 31 | type UserShort struct { |
| @@ -92,6 +92,18 @@ type Category struct { | |||
| 92 | Name string `json:"name"` | 92 | Name string `json:"name"` |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | type Title struct { | ||
| 96 | Name string `json:"name"` | ||
| 97 | Color string `json:"color"` | ||
| 98 | } | ||
| 99 | |||
| 100 | type Links struct { | ||
| 101 | P2SR string `json:"p2sr"` | ||
| 102 | Steam string `json:"stream"` | ||
| 103 | YouTube string `json:"youtube"` | ||
| 104 | Twitch string `json:"twitch"` | ||
| 105 | } | ||
| 106 | |||
| 95 | type RecordSP struct { | 107 | type RecordSP struct { |
| 96 | RecordID int `json:"record_id"` | 108 | RecordID int `json:"record_id"` |
| 97 | Placement int `json:"placement"` | 109 | Placement int `json:"placement"` |