feat(db): add similarity sqlc queries (list-needing, get-by-mbids, upsert)

This commit is contained in:
2026-04-28 19:58:05 -04:00
parent fc2d35d33c
commit d4e0e5fae3
3 changed files with 257 additions and 0 deletions
+16
View File
@@ -29,6 +29,14 @@ type Artist struct {
UpdatedAt pgtype.Timestamptz
}
type ArtistSimilarity struct {
ArtistAID pgtype.UUID
ArtistBID pgtype.UUID
Score float64
Source string
FetchedAt pgtype.Timestamptz
}
type ContextualLike struct {
ID pgtype.UUID
UserID pgtype.UUID
@@ -129,6 +137,14 @@ type Track struct {
UpdatedAt pgtype.Timestamptz
}
type TrackSimilarity struct {
TrackAID pgtype.UUID
TrackBID pgtype.UUID
Score float64
Source string
FetchedAt pgtype.Timestamptz
}
type User struct {
ID pgtype.UUID
Username string