db: add anime fetch retry queue

This commit is contained in:
2026-04-12 14:53:24 +02:00
parent 30d75eeced
commit f5d13165f4
5 changed files with 180 additions and 0 deletions

View File

@@ -29,6 +29,15 @@ type Anime struct {
RelationsSyncedAt sql.NullTime `json:"relations_synced_at"`
}
type AnimeFetchRetry struct {
AnimeID int64 `json:"anime_id"`
Attempts int64 `json:"attempts"`
NextRetryAt time.Time `json:"next_retry_at"`
LastError string `json:"last_error"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type AnimeRelation struct {
AnimeID int64 `json:"anime_id"`
RelatedAnimeID int64 `json:"related_anime_id"`