feat: native import & export

This commit is contained in:
Gabe Farrell 2025-06-18 06:49:05 -04:00
parent 1d02cede49
commit 7b0cff0a07
13 changed files with 645 additions and 2 deletions

View file

@ -2,6 +2,9 @@ package db
import (
"time"
"github.com/gabehf/koito/internal/models"
"github.com/google/uuid"
)
type InformationSource string
@ -24,3 +27,20 @@ type PaginatedResponse[T any] struct {
HasNextPage bool `json:"has_next_page"`
CurrentPage int32 `json:"current_page"`
}
type ExportItem struct {
ListenedAt time.Time
UserID int32
Client *string
TrackID int32
TrackMbid *uuid.UUID
TrackDuration int32
TrackAliases []models.Alias
ReleaseID int32
ReleaseMbid *uuid.UUID
ReleaseImage *uuid.UUID
ReleaseImageSource string
VariousArtists bool
ReleaseAliases []models.Alias
Artists []models.ArtistWithFullAliases
}