import { BaseRepository } from '@edr/api-common';
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';

import { Locomotive } from './entities/locomotive.entity';

@Injectable()
export class LocomotivesRepository extends BaseRepository<Locomotive> {
  constructor(
    @InjectRepository(Locomotive)
    repository: Repository<Locomotive>,
  ) {
    super(repository);
  }
}
