import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { TimeEntry, TimeEntrySchema, Matter, MatterSchema } from '../common/schemas'
import { TimeEntriesController } from './time-entries.controller'
import { TimeEntriesService } from './time-entries.service'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: TimeEntry.name, schema: TimeEntrySchema },
      { name: Matter.name, schema: MatterSchema },
    ]),
  ],
  controllers: [TimeEntriesController],
  providers: [TimeEntriesService],
  exports: [TimeEntriesService],
})
export class TimeEntriesModule {}
