aboutsummaryrefslogtreecommitdiff
path: root/backend/models
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-08-24 22:34:05 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-08-24 22:34:05 +0300
commitca973edc28b5fe543c583217896590f4a2e98897 (patch)
tree7f37713ac587ef80fb3a17d869d01520a1d94dca /backend/models
parentMerge branch 'main' of https://github.com/pektezol/LeastPortalsHub (diff)
downloadlphub-ca973edc28b5fe543c583217896590f4a2e98897.tar.gz
lphub-ca973edc28b5fe543c583217896590f4a2e98897.tar.bz2
lphub-ca973edc28b5fe543c583217896590f4a2e98897.zip
fix: mod flag for easy check (#49)
Former-commit-id: 06ee23ee9659834252d3cb5c3c255797e9f93b62
Diffstat (limited to 'backend/models')
-rw-r--r--backend/models/models.go14
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
31type UserShort struct { 31type UserShort struct {
@@ -92,6 +92,18 @@ type Category struct {
92 Name string `json:"name"` 92 Name string `json:"name"`
93} 93}
94 94
95type Title struct {
96 Name string `json:"name"`
97 Color string `json:"color"`
98}
99
100type Links struct {
101 P2SR string `json:"p2sr"`
102 Steam string `json:"stream"`
103 YouTube string `json:"youtube"`
104 Twitch string `json:"twitch"`
105}
106
95type RecordSP struct { 107type RecordSP struct {
96 RecordID int `json:"record_id"` 108 RecordID int `json:"record_id"`
97 Placement int `json:"placement"` 109 Placement int `json:"placement"`