import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { WebstoreController } from './webstore.controller';
import { WebstoreService } from './webstore.service';
import { StoreConfig } from '../../entities/store-config.entity';
import { StoreCategory } from '../../entities/store-category.entity';
import { StoreItem } from '../../entities/store-item.entity';
import { StoreTransaction } from '../../entities/store-transaction.entity';
import { License } from '../../entities/license.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      StoreConfig,
      StoreCategory,
      StoreItem,
      StoreTransaction,
      License,
    ]),
  ],
  controllers: [WebstoreController],
  providers: [WebstoreService],
  exports: [WebstoreService],
})
export class WebstoreModule {}
