import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { OperationsStandard } from './entities/operations-standard.entity'; import { OperationsTarget } from './entities/operations-target.entity'; import { OperationsStandardsController } from './operations-standards.controller'; import { OperationsStandardsService } from './operations-standards.service'; import { OperationsTargetsController } from './operations-targets.controller'; import { OperationsTargetsService } from './operations-targets.service'; /** * Reference data behind the operations reports: the railway's operating * standards (one settings row) and the planned targets the reports compare * actuals against. * * Not global, and deliberately so: nothing outside this module injects either * service. The reports read both tables in raw SQL — `STANDARDS_JOIN` and * `plannedRowsSql` in `reports/operations-classification.ts` — so the exports * below are for future callers, not current ones. */ @Module({ imports: [TypeOrmModule.forFeature([OperationsStandard, OperationsTarget])], controllers: [OperationsStandardsController, OperationsTargetsController], providers: [OperationsStandardsService, OperationsTargetsService], exports: [OperationsStandardsService, OperationsTargetsService], }) export class OperationsReportingModule {}