From 8ce29414f4f8fdd1f3968c4338bdcb28ee31911d Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Wed, 3 Aug 2022 23:12:16 +0200 Subject: [PATCH] fixed foreign key data types --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index d37e6fc..40ac8d3 100644 --- a/types.go +++ b/types.go @@ -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"`