Class Code

java.lang.Object
com.bank.auth_service.model.Code

@Entity public class Code extends Object
Entity representing a verification code used for user validation processes. Stores the code, its key (e.g., email), and the creation timestamp.
Since:
1.0.0
Version:
1.0.0, 06/23/2025
Author:
Fernando Cruz Cavina
  • Constructor Details

    • Code

      public Code()
      Default constructor.
    • Code

      public Code(String keyCode, String code, Long createdAt)
      Constructs a new Code with the specified key, code, and creation time.
      Parameters:
      keyCode - the key associated with the code (e.g., email)
      code - the verification code
      createdAt - the creation timestamp