/**
 * @aurora-catalyst-generated
 * @source cliter/o-auth/refresh-token.aurora.yaml
 */
import { OAuthRefreshToken } from '@api/graphql';
import { OAuthRefreshTokenModel } from '@app/o-auth/refresh-token';
import { AuditingRunner, ICriteria, SequelizeCatalystRepository } from '@aurorajs.dev/core-back';
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/sequelize';

@Injectable()
export class OAuthSequelizeRefreshTokenRepository extends SequelizeCatalystRepository<
  OAuthRefreshTokenModel,
  OAuthRefreshToken
> {
  constructor(
    @InjectModel(OAuthRefreshTokenModel)
    public readonly repository: typeof OAuthRefreshTokenModel,
    public readonly criteria: ICriteria,
    public readonly auditingRunner: AuditingRunner,
  ) {
    super();
  }
}
