feat: use sqlite for jikan api cache with hourly cleanup
This commit is contained in:
@@ -35,6 +35,13 @@ type AnimeRelation struct {
|
||||
RelationType string `json:"relation_type"`
|
||||
}
|
||||
|
||||
type JikanCache struct {
|
||||
Key string `json:"key"`
|
||||
Data string `json:"data"`
|
||||
ExpiresAt time.Time `json:"expires_at"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
|
||||
type NotificationPreference struct {
|
||||
ID string `json:"id"`
|
||||
UserID string `json:"user_id"`
|
||||
|
||||
Reference in New Issue
Block a user