import GroupReportingUserModel from '../../models/group-reporting-user.entity';
import { RepositoryBase, IRepositoryBase } from '@tomei/general';

export class GroupReportingUserRepository
  extends RepositoryBase<GroupReportingUserModel>
  implements IRepositoryBase<GroupReportingUserModel>
{
  constructor() {
    super(GroupReportingUserModel);
  }

  async destroy(
    groupReportingUserId: number,
    dbTransaction: any,
  ): Promise<void> {
    await GroupReportingUserModel.destroy({
      where: {
        GroupReportingUserId: groupReportingUserId,
      },
      transaction: dbTransaction,
    });
  }
}
