feat(server,web): favorite albums per user

This commit is contained in:
Alex
2026-04-23 03:33:32 +00:00
parent f0835d06f8
commit 166f36e5bf
17 changed files with 170 additions and 20 deletions
@@ -0,0 +1,9 @@
import { Kysely, sql } from 'kysely';
export async function up(db: Kysely<any>): Promise<void> {
await sql`ALTER TABLE "album_user" ADD "isFavorite" boolean NOT NULL DEFAULT false;`.execute(db);
}
export async function down(db: Kysely<any>): Promise<void> {
await sql`ALTER TABLE "album_user" DROP COLUMN "isFavorite";`.execute(db);
}