import { Injectable } from '@nestjs/common';
import { BaseDataService } from 'src/core/modules/data/service/base-data.service';
import { {{pascalCase name}}Entity } from '../../domain/entities/{{dashCase name}}.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { {{pascalCase name}}Model } from '../models/{{dashCase name}}.model';
import { CONNECTION_NAME } from 'src/core/strings/constants/base.constants';
import { Repository } from 'typeorm';

@Injectable()
export class {{pascalCase name}}DataService extends BaseDataService<{{pascalCase name}}Entity> {
  constructor(
    @InjectRepository({{pascalCase name}}Model, CONNECTION_NAME.DEFAULT)
    private repo: Repository<{{pascalCase name}}Model>,
  ) {
    super(repo);
  }
}
