feat(db): add M2 likes schema (general_likes, _albums, _artists)

Three tables keyed on (user_id, entity_id) with liked_at. Per-table
indexes on (user_id, liked_at DESC) for the recently-liked feed.
sqlc queries cover like/unlike/list-rows/count/list-ids per entity.
This commit is contained in:
2026-04-26 16:20:08 -04:00
parent a3c05aeb34
commit 780beaa248
5 changed files with 452 additions and 0 deletions
@@ -0,0 +1,3 @@
DROP TABLE IF EXISTS general_likes_artists;
DROP TABLE IF EXISTS general_likes_albums;
DROP TABLE IF EXISTS general_likes;