import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import {
  CardLicense,
  CardLicenseIssue,
  License,
  LicenseOrder,
  LicenseAllocationHistory,
  LicenseArchive,
  LicenseAllocationHistoryArchive,
} from './entity/license.entity';
import { LicensesRepositoryService } from './licenses.repository.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      LicenseOrder,
      License,
      CardLicense,
      CardLicenseIssue,
      LicenseAllocationHistory,
      LicenseArchive,
      LicenseAllocationHistoryArchive,
    ]),
  ],
  providers: [LicensesRepositoryService],
  exports: [LicensesRepositoryService],
})
export class LicensesRepositoryModule {}
