import { Module } from '@nestjs/common';

import { ConfigModule } from '@nestjs/config';
import { TypeOrmSharedModule } from '@app/typeorm';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ShopItem } from './shopitem.entity';
import { StaticFileModule } from '@app/static-file';
import { ShopController } from './shop.controller';
import { ShopService } from './shop.service';

import { ShopitemcategoryModule } from './shopitemcategory/shopitemcategory.module';
import { ShopitemsubcategoryModule } from './shopitemsubcategory/shopitemsubcategory.module';

@Module({
  imports: [
    ConfigModule.forRoot(),
    TypeOrmSharedModule,
    TypeOrmModule.forFeature([ShopItem]),
    StaticFileModule,
    ShopitemcategoryModule,
    ShopitemsubcategoryModule,
    ShopitemsubcategoryModule,
  ],
  controllers: [ShopController],
  providers: [ShopService],
  exports: [ShopService, ShopModule],
})
export class ShopModule {}
