feat(F-105): completed feature

This commit is contained in:
chattie
2026-08-21 08:06:31 +02:00
parent 9b42c506f3
commit 5458789634
13 changed files with 247 additions and 49 deletions

View File

@@ -0,0 +1,15 @@
/**
* Adds a JSONB preferences column to users_profiles so customers can manage
* notification/marketing preferences from their account page.
* @param {import('node-pg-migrate').MigrationBuilder} pgm
*/
export const up = (pgm) => {
pgm.sql(`
ALTER TABLE users_profiles
ADD COLUMN IF NOT EXISTS preferences jsonb NOT NULL DEFAULT '{}'::jsonb
`);
};
export const down = (pgm) => {
pgm.sql(`ALTER TABLE users_profiles DROP COLUMN IF EXISTS preferences`);
};