package com.dbnt.kcscbackend.config.jwt.redis;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.redis.core.index.Indexed;


@Builder
@Getter
@AllArgsConstructor
@NoArgsConstructor
@RedisHash(value="refreshToken", timeToLive = 60*60*24*14)
public class RefreshToken {

  @Id
  private Integer userSeq;
  @Indexed
  private String refreshToken;

}
