diff --git a/web/prisma/migrations/20260714213448_add_discovery_album_reason/migration.sql b/web/prisma/migrations/20260714213448_add_discovery_album_reason/migration.sql new file mode 100644 index 0000000..35813c3 --- /dev/null +++ b/web/prisma/migrations/20260714213448_add_discovery_album_reason/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "DiscoverySuggestion" ADD COLUMN "albumReason" TEXT; diff --git a/web/prisma/schema.prisma b/web/prisma/schema.prisma index 37dea2d..28e18ab 100644 --- a/web/prisma/schema.prisma +++ b/web/prisma/schema.prisma @@ -171,6 +171,10 @@ model DiscoverySuggestion { score Float seedCount Int sources String[] + // Why this album is suggested (kind='album' only): "newest" (the artist's newest un-owned + // release), "popular" (their most-played per Last.fm), or "newest,popular" when they're the + // same release. Null for artist suggestions / rows from before this column existed. + albumReason String? status SuggestionStatus @default(pending) dedupeKey String @unique createdAt DateTime @default(now())