import { Injectable } from '@nestjs/common';
import { SeasonTypeEntity } from '../../domain/entities/season-type.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { SeasonTypeModel } from '../models/season-type.model';
import { CONNECTION_NAME } from 'src/core/strings/constants/base.constants';
import { Repository } from 'typeorm';
import { BaseReadService } from 'src/core/modules/data/service/base-read.service';

@Injectable()
export class SeasonTypeReadService extends BaseReadService<SeasonTypeEntity> {
  constructor(
    @InjectRepository(SeasonTypeModel, CONNECTION_NAME.DEFAULT)
    private repo: Repository<SeasonTypeModel>,
  ) {
    super(repo);
  }
}
