import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Coupon } from './entities/coupon.entity';
import { CouponRedemption } from './entities/coupon-redemption.entity';
import { CouponService } from './coupon.service';
// Controller can be added later if needed for 'list coupons'

import { CouponsController } from './coupons.controller';

@Module({
  imports: [TypeOrmModule.forFeature([Coupon, CouponRedemption])],
  controllers: [CouponsController],
  providers: [CouponService],
  exports: [CouponService],
})
export class CouponModule {}
