tsconfig.json excludes src/modules, yet src/modules/gdpr/entities/user-consent.entity.ts, src/modules/ccpa/entities/consumer-privacy-preference.entity.ts and src/modules/sync/entities/sync.entity.ts exist there. These use MikroORM-style global decorators (not the TypeORM ones used everywhere else) and fail to compile / load as TypeORM entities. They are not registered in any Nest module (src/sync is the real, separate sync module).
Because the migration datasource glob excludes src/modules, they silently fall out of schema management — but the dead code is confusing and could be picked up accidentally.
Fix: delete the unused src/modules/gdpr, src/modules/ccpa, src/modules/sync entity files, or migrate them to real TypeORM entities and register them.
tsconfig.jsonexcludessrc/modules, yetsrc/modules/gdpr/entities/user-consent.entity.ts,src/modules/ccpa/entities/consumer-privacy-preference.entity.tsandsrc/modules/sync/entities/sync.entity.tsexist there. These use MikroORM-style global decorators (not the TypeORM ones used everywhere else) and fail to compile / load as TypeORM entities. They are not registered in any Nest module (src/syncis the real, separate sync module).Because the migration datasource glob excludes
src/modules, they silently fall out of schema management — but the dead code is confusing and could be picked up accidentally.Fix: delete the unused
src/modules/gdpr,src/modules/ccpa,src/modules/syncentity files, or migrate them to real TypeORM entities and register them.