import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ComplianceController } from './compliance.controller';
import { ComplianceService } from './compliance.service';
import { DeletionSchedulerService } from './deletion-scheduler.service';
import { User } from '../../database/entities/user.entity';
import { FamilyMember } from '../../database/entities/family-member.entity';
import { Child } from '../../database/entities/child.entity';
import { Activity } from '../../database/entities/activity.entity';
import { AIConversation } from '../../database/entities/ai-conversation.entity';
import { Photo } from '../../database/entities/photo.entity';
import { AuditLog } from '../../database/entities/audit-log.entity';
import { DeletionRequest } from '../../database/entities/deletion-request.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      User,
      FamilyMember,
      Child,
      Activity,
      AIConversation,
      Photo,
      AuditLog,
      DeletionRequest,
    ]),
  ],
  controllers: [ComplianceController],
  providers: [ComplianceService, DeletionSchedulerService],
  exports: [ComplianceService],
})
export class ComplianceModule {}
