resturant module

This commit is contained in:
2025-11-11 15:57:57 +03:30
parent 95191f9b30
commit 111540bb15
3 changed files with 15 additions and 39 deletions
@@ -0,0 +1,6 @@
import { EntityRepository } from '@mikro-orm/postgresql';
import type { Restaurant } from '../entities/restaurant.entity';
// import { PaginationUtils } from '../../utils/services/pagination.utils';
export class RestRepository extends EntityRepository<Restaurant> {}
@@ -1,9 +1,14 @@
import { Module } from '@nestjs/common';
import { RestaurantsService } from './restaurants.service';
import { RestaurantsController } from './restaurants.controller';
import { MikroOrmModule } from '@mikro-orm/nestjs';
import { Restaurant } from './entities/restaurant.entity';
import { RestRepository } from './repositories/rest.repository';
@Module({
controllers: [RestaurantsController],
providers: [RestaurantsService],
providers: [RestaurantsService, RestRepository],
imports: [MikroOrmModule.forFeature([Restaurant])],
exports: [RestRepository],
})
export class RestaurantsModule {}