Done ticket GEPAFINBE-52
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
package net.gepafin.tendermanagement.entities;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Entity
|
||||
@Table(name = "LOGIN_ATTEMPT")
|
||||
@Getter
|
||||
@Setter
|
||||
public class LoginAttemptEntity {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "ID", unique = true)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "USERNAME")
|
||||
private String username;
|
||||
|
||||
@Column(name = "USER_ID")
|
||||
private Long userId;
|
||||
|
||||
@Column(name = "ATTEMPT_DATE", nullable = false)
|
||||
private LocalDateTime attemptDate;
|
||||
|
||||
@Column(name = "IP_ADDRESS", length = 100)
|
||||
private String ipAddress;
|
||||
|
||||
@Column(name = "USER_AGENT")
|
||||
private String userAgent;
|
||||
|
||||
@Column(name = "RESULT", length = 100, nullable = false)
|
||||
private String result;
|
||||
|
||||
@Column(name = "ERROR_MSG")
|
||||
private String errorMsg;
|
||||
|
||||
@Column(name = "ATTEMPT_TYPE", length = 100, nullable = false)
|
||||
private String type;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user