fixed foreign key data types

This commit is contained in:
Timon Ringwald 2022-08-03 23:12:16 +02:00
parent faa5474d22
commit 8ce29414f4

View File

@ -184,7 +184,7 @@ type MediaListID int
type MediaList struct {
ID MediaListID `json:"id"`
UserID int `json:"userId"`
MediaID int `json:"mediaId"`
MediaID MediaID `json:"mediaId"`
Status MediaListStatus `json:"status"`
Score float64 `json:"score"`
Progress int `json:"progress"`
@ -217,7 +217,7 @@ type AiringScheduleID int
type AiringSchedule struct {
ID AiringScheduleID `json:"id"`
MediaID int `json:"mediaId"`
MediaID MediaID `json:"mediaId"`
AiringAt UnixTime `json:"airingAt"`
TimeUntilAiring Seconds `json:"timeUntilAiring"`
Episode int `json:"episode"`