- Introduced `CustomersModule` to manage customer data, including read and write controllers. - Created database migrations for the `customers` and `customer_contacts` tables, including constraints and unique indexes. - Implemented validation for customer fields such as name, code, and address with corresponding utility functions. - Developed service and repository layers for handling customer data operations. - Added unit tests for the customers service, repository, and controllers to ensure functionality and correctness. - Updated application module to include the new `CustomersModule` for better organization.
11 lines
406 B
TypeScript
11 lines
406 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { BranchesModule } from './branches/branches.module';
|
|
import { CustomersModule } from './customers/customers.module';
|
|
import { DivisionsModule } from './divisions/divisions.module';
|
|
|
|
@Module({
|
|
imports: [DivisionsModule, BranchesModule, CustomersModule],
|
|
exports: [DivisionsModule, BranchesModule, CustomersModule],
|
|
})
|
|
export class ConfigurationModule {}
|