import { Injectable } from '@nestjs/common';
import { BaseDataService } from 'src/core/modules/data/service/base-data.service';
import { TimeGroupEntity } from '../../domain/entities/time-group.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { TimeGroupModel } from '../models/time-group.model';
import { CONNECTION_NAME } from 'src/core/strings/constants/base.constants';
import { Repository } from 'typeorm';

@Injectable()
export class TimeGroupDataService extends BaseDataService<TimeGroupEntity> {
  constructor(
    @InjectRepository(TimeGroupModel, CONNECTION_NAME.DEFAULT)
    private repo: Repository<TimeGroupModel>,
  ) {
    super(repo);
  }
}
