fixed foreign key data types
This commit is contained in:
parent
faa5474d22
commit
8ce29414f4
4
types.go
4
types.go
@ -184,7 +184,7 @@ type MediaListID int
|
|||||||
type MediaList struct {
|
type MediaList struct {
|
||||||
ID MediaListID `json:"id"`
|
ID MediaListID `json:"id"`
|
||||||
UserID int `json:"userId"`
|
UserID int `json:"userId"`
|
||||||
MediaID int `json:"mediaId"`
|
MediaID MediaID `json:"mediaId"`
|
||||||
Status MediaListStatus `json:"status"`
|
Status MediaListStatus `json:"status"`
|
||||||
Score float64 `json:"score"`
|
Score float64 `json:"score"`
|
||||||
Progress int `json:"progress"`
|
Progress int `json:"progress"`
|
||||||
@ -217,7 +217,7 @@ type AiringScheduleID int
|
|||||||
|
|
||||||
type AiringSchedule struct {
|
type AiringSchedule struct {
|
||||||
ID AiringScheduleID `json:"id"`
|
ID AiringScheduleID `json:"id"`
|
||||||
MediaID int `json:"mediaId"`
|
MediaID MediaID `json:"mediaId"`
|
||||||
AiringAt UnixTime `json:"airingAt"`
|
AiringAt UnixTime `json:"airingAt"`
|
||||||
TimeUntilAiring Seconds `json:"timeUntilAiring"`
|
TimeUntilAiring Seconds `json:"timeUntilAiring"`
|
||||||
Episode int `json:"episode"`
|
Episode int `json:"episode"`
|
||||||
|
Loading…
Reference in New Issue
Block a user