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

import { Train } from "./entities/train.entity";

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