Added action logs for user api's.
This commit is contained in:
@@ -1,21 +1,14 @@
|
||||
package net.gepafin.tendermanagement.entities;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.Data;
|
||||
|
||||
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;
|
||||
@Data
|
||||
public class LoginAttemptEntity extends BaseEntity{
|
||||
|
||||
@Column(name = "USERNAME")
|
||||
private String username;
|
||||
|
||||
@@ -38,6 +38,6 @@ public class UserActionEntity extends BaseEntity {
|
||||
private String actionContext;
|
||||
|
||||
@Column(name = "RESPONSE")
|
||||
private Object response;
|
||||
private String response;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user