chore(db): add query indexes migration and update project config

- Add database migration for missing query indexes on frequently filtered columns
- Update Prisma schema
- Update .env.example, eslint config, and dependency-cruiser config

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-09 09:44:37 +07:00
parent 7195064f12
commit ef47d9eb80
5 changed files with 126 additions and 2 deletions

View File

@@ -31,13 +31,15 @@ module.exports = {
},
},
// Apps should not import module internals either
// Apps (outside modules) should not import module internals either.
// Files inside src/modules/ are covered by no-cross-module-internals above.
{
name: 'no-app-to-module-internals',
severity: 'error',
comment: 'Apps must import modules via their barrel index, not internal files.',
from: {
path: 'apps/',
pathNot: ['src/modules/'],
},
to: {
path: 'src/modules/([^/]+)/.+',