diff options
Diffstat (limited to 'api/internal/models/preferences.go')
-rw-r--r-- | api/internal/models/preferences.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api/internal/models/preferences.go b/api/internal/models/preferences.go index cbbd47c..8022099 100644 --- a/api/internal/models/preferences.go +++ b/api/internal/models/preferences.go | |||
@@ -1,14 +1,14 @@ | |||
1 | package models | 1 | package models |
2 | 2 | ||
3 | type Preference struct { | 3 | type Preference struct { |
4 | ID int64 `json:"-"` | 4 | ID int64 `json:"id"` |
5 | Color string `json:"color"` | 5 | Color string `json:"color"` |
6 | UserID int64 `json:"-"` | 6 | UserID int64 `json:"user_id"` |
7 | Size Size `json:"size"` | 7 | SizeID int64 `json:"size_id"` |
8 | } | 8 | } |
9 | 9 | ||
10 | type Size struct { | 10 | type Size struct { |
11 | ID int64 `json:"-"` | 11 | ID int64 `json:"id"` |
12 | Size int64 `json:"size"` | 12 | Size int64 `json:"size"` |
13 | Unit string `json:"unit"` | 13 | Unit string `json:"unit"` |
14 | } | 14 | } |