import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { DatabaseModule } from './db/database.module';
import { HealthModule } from '@manacore/shared-nestjs-health';
import { MealModule } from './meal/meal.module';
import { GoalsModule } from './goals/goals.module';
import { FavoritesModule } from './favorites/favorites.module';
import { AnalysisModule } from './analysis/analysis.module';
import { StatsModule } from './stats/stats.module';
import { RecommendationsModule } from './recommendations/recommendations.module';

@Module({
	imports: [
		ConfigModule.forRoot({
			isGlobal: true,
			envFilePath: ['.env', '.env.development'],
		}),
		DatabaseModule,
		HealthModule.forRoot({ serviceName: 'nutriphi-backend' }),
		MealModule,
		GoalsModule,
		FavoritesModule,
		AnalysisModule,
		StatsModule,
		RecommendationsModule,
	],
})
export class AppModule {}
