feat(db): add ListenBrainz user-config and scrobble_queue queries

This commit is contained in:
2026-04-28 08:42:38 -04:00
parent efc2308348
commit a0e21f21b6
5 changed files with 380 additions and 11 deletions
+20 -7
View File
@@ -82,6 +82,17 @@ type PlaySession struct {
ClientID *string
}
type ScrobbleQueue struct {
ID pgtype.UUID
UserID pgtype.UUID
PlayEventID pgtype.UUID
Status string
Attempts int32
NextAttemptAt pgtype.Timestamptz
LastError *string
EnqueuedAt pgtype.Timestamptz
}
type Session struct {
ID pgtype.UUID
UserID pgtype.UUID
@@ -119,11 +130,13 @@ type Track struct {
}
type User struct {
ID pgtype.UUID
Username string
PasswordHash string
ApiToken string
IsAdmin bool
CreatedAt pgtype.Timestamptz
SubsonicPassword *string
ID pgtype.UUID
Username string
PasswordHash string
ApiToken string
IsAdmin bool
CreatedAt pgtype.Timestamptz
SubsonicPassword *string
ListenbrainzToken *string
ListenbrainzEnabled bool
}