import { Injectable } from '@nestjs/common';
import { BaseDataService } from 'src/core/modules/data/service/base-data.service';
import { ItemCategoryEntity } from '../../domain/entities/item-category.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { ItemCategoryModel } from '../models/item-category.model';
import { CONNECTION_NAME } from 'src/core/strings/constants/base.constants';
import { Repository } from 'typeorm';

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