wallet transaction entity added

This commit is contained in:
2025-12-29 09:59:29 +03:30
parent 352bbe2770
commit 89adbfdb33
10 changed files with 431 additions and 144 deletions
+8 -4
View File
@@ -8,12 +8,16 @@ import { JwtModule } from '@nestjs/jwt';
import { UserRepository } from './repositories/user.repository';
import { RestaurantsModule } from '../restaurants/restaurants.module';
import { UserWalletRepository } from './repositories/user-wallet.repository';
import { WalletTransactionRepository } from './repositories/wallet-transaction.repository';
import { WalletService } from './providers/wallet.service';
import { UserWallet } from './entities/user-wallet.entity';
import { WalletTransaction } from './entities/wallet-transaction.entity';
@Module({
providers: [UserService, UserRepository, UserWalletRepository],
providers: [UserService, WalletService, UserRepository, UserWalletRepository, WalletTransactionRepository],
controllers: [UsersController],
imports: [MikroOrmModule.forFeature([User, UserAddress, UserWallet]), JwtModule, RestaurantsModule],
exports: [UserService, UserRepository, UserWalletRepository],
imports: [MikroOrmModule.forFeature([User, UserAddress, UserWallet,
WalletTransaction]), JwtModule, RestaurantsModule],
exports: [UserService, WalletService, UserRepository, UserWalletRepository, WalletTransactionRepository],
})
export class UserModule {}
export class UserModule { }